Skip to content

Commit 53be700

Browse files
bradeglerverbanicm
authored andcommitted
fix: minor usage fixes (#18)
- Moved action.yml to top level to make it easier to reference. - Fixed issue with curl not following redirects - Incremented the RELEASE_VERSION - this needs a better long term solution so that we don't have to increment this file every time we tag a new release. Will solve this in a follow up.
1 parent 019faa2 commit 53be700

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ runs:
3131
- name: 'download-artifacts'
3232
shell: 'bash'
3333
env:
34-
RELEASE_VERSION: '0.1.0'
34+
RELEASE_VERSION: '0.2.1'
3535
RELEASE_LOCATION: 'https://github.com/abcxyz/secure-setup-terraform/releases/tag'
3636
run: |-
37-
curl -H "Authorization: token ${{ github.token }}" -O "${{env.RELEASE_LOCATION}}/v${{env.RELEASE_VERSION}}/secure-setup-terraform_${{env.RELEASE_VERSION}}_linux_amd64.tar.gz"
38-
curl -H "Authorization: token ${{ github.token }}" -o terraform-checksums.json "${{env.RELEASE_LOCATION}}/v${{env.RELEASE_VERSION}}/secure-setup-terraform_${{env.RELEASE_VERSION}}_checksums.json"
37+
curl -H "Authorization: token ${{ github.token }}" -LO "${{env.RELEASE_LOCATION}}/v${{env.RELEASE_VERSION}}/secure-setup-terraform_${{env.RELEASE_VERSION}}_linux_amd64.tar.gz"
38+
curl -H "Authorization: token ${{ github.token }}" -Lo terraform-checksums.json "${{env.RELEASE_LOCATION}}/v${{env.RELEASE_VERSION}}/secure-setup-terraform_${{env.RELEASE_VERSION}}_checksums.json"
3939
tar xf secure-setup-terraform_${{env.RELEASE_VERSION}}_linux_amd64.tar.gz
4040
4141
# Recursively search for terraform files in the current repo and run a linter that fails when it finds calls to 'local-exec'

0 commit comments

Comments
 (0)