Im trying to use this github action but it seems that it's not able to read the env section from the workflow and Im not able to figure out why. All the secrets have been set in my Github repo .
Here is the step in my job using the action.
steps:
- uses: actions/checkout@v2
- uses: 73h/[email protected]
env:
HOST: ${{ secrets.HOST }}
with:
app_yaml_path: 'gcp-staging.yaml'
runtime: nodejs16
instance_class: F2
handlers:
- url: /_nuxt
static_dir: .nuxt/dist/client
secure: always
- url: /(.*\.(gif|png|jpg|ico|txt))$
static_files: static/\1
upload: static/.*\.(gif|png|jpg|ico|txt)$
secure: always
- url: /.*
script: auto
secure: always
env_variables:
HOST: $SECRET_HOST
File "/app/main.py", line 35, in <module>
replace_env_variables_in_app_yaml_file()
File "/app/main.py", line 27, in replace_env_variables_in_app_yaml_file
raise Exception(f"cannot find the env-variable {key} in \"env\" section in github action workflow")
Exception: cannot find the env-variable HOST in "env" section in github action workflow