Skip to content

Commit

Permalink
fix: minor usage fixes (#18)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
bradegler authored Dec 19, 2022
1 parent 3bae86a commit 5feef08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ...actions/secure-setup-terraform/action.yml → action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ runs:
- name: 'download-artifacts'
shell: 'bash'
env:
RELEASE_VERSION: '0.1.0'
RELEASE_VERSION: '0.2.1'
RELEASE_LOCATION: 'https://github.com/abcxyz/secure-setup-terraform/releases/tag'
run: |-
curl -H "Authorization: token ${{ github.token }}" -O "${{env.RELEASE_LOCATION}}/v${{env.RELEASE_VERSION}}/secure-setup-terraform_${{env.RELEASE_VERSION}}_linux_amd64.tar.gz"
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"
curl -H "Authorization: token ${{ github.token }}" -LO "${{env.RELEASE_LOCATION}}/v${{env.RELEASE_VERSION}}/secure-setup-terraform_${{env.RELEASE_VERSION}}_linux_amd64.tar.gz"
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"
tar xf secure-setup-terraform_${{env.RELEASE_VERSION}}_linux_amd64.tar.gz
# Recursively search for terraform files in the current repo and run a linter that fails when it finds calls to 'local-exec'
Expand Down

0 comments on commit 5feef08

Please sign in to comment.