Closed kerrmarin closed 4 years ago
A simple workflow with a step like:
- name: Upload to Google Cloud uses: actions-hub/gcloud@master env: PROJECT_ID: my-project-id APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} CLI: gsutil with: args: -h "Cache-Control:public, max-age=86400" -m cp -r docs/** gs://my-bucket/${{ env.GITHUB_REF_SLUG }}
Fails with CommandException: Invalid command "max-age=86400".
CommandException: Invalid command "max-age=86400".
The same command works if -h "Cache-Control:public, max-age=86400" is omitted.
-h "Cache-Control:public, max-age=86400"
Following the docs here it appears that this should work?
@kerrmarin fast solution, try to use single quotes: -h 'Cache-Control:public, max-age=86400'. I will fix it in free time.
@exelban thank you for the quick response, that worked 👍
A simple workflow with a step like:
Fails with
CommandException: Invalid command "max-age=86400".
The same command works if
-h "Cache-Control:public, max-age=86400"
is omitted.Following the docs here it appears that this should work?