github actions failing immediately after connecting to warehouse

I’m trying to run a github actions workflow to publish my dbt doc to publish dbt docs to github pages

The it gets the github action run ‘dbt docs generate’ it fails.

I’ve tried changing the command to ‘dbt build’ and get the same error. The command run fine locally and in dbt cloud.

The github action is

 - name: generate documentatios
   run: dbt docs generate --target docs_prod

The error I get is:

Running with dbt=1.4.1

Unable to do partial parsing because saved manifest not found. Starting full parse.

Found 1 model, 2 tests, 0 snapshots, 0 analyses, 304 macros, 0 operations, 0 seed files, 0 sources, 0 exposures, 0 metrics

Encountered an error:

Database Error

SQL compilation error:

syntax error line 1 at position 22 unexpected '.'.

Error: Process completed with exit code 2.