Skip to content

Commit

Permalink
never inline github substitutions into shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
DenKoren committed Oct 23, 2024
1 parent 025c8b2 commit bc59455
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions blocks/update-cdn-link/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,15 @@ runs:

- name: Update website-redirect-location metadata in the file
uses: milaboratory/github-ci/actions/shell@v4
env:
S3_BUCKET: ${{ inputs.s3-bucket }}
S3_KEY: ${{ inputs.s3-bucket-path }}/${{ inputs.s3-bucket-key }}
REDIRECT_LINK: ${{ inputs.cdn-redirect-link }}
CACHE_SETTINGS: ${{ inputs.cache-settings }}
with:
run: |
aws s3api put-object --bucket ${{ inputs.s3-bucket }} \
--key ${{ inputs.s3-bucket-path }}/${{ inputs.s3-bucket-key }} \
--website-redirect-location ${{ inputs.cdn-redirect-link }} \
--cache-control ${{ inputs.cache-settings }}
aws s3api put-object \
--bucket "${S3_BUCKET}" \
--key "${S3_KEY}" \
--website-redirect-location "${REDIRECT_LINK}" \
--cache-control "${CACHE_SETTINGS}"

0 comments on commit bc59455

Please sign in to comment.