Skip to content

Commit

Permalink
ci: 🎡 action
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Nov 21, 2024
1 parent 4eafe66 commit 1487d9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/push-terraform-module-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Export LATEST_TAG
run: |
echo "LATEST_TAG=$(curl \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"${{ github.api_url }}/repos/${{ github.repository }}/releases/latest" \
| jq -r .tag_name)" >> $GITHUB_ENV
- uses: ministryofjustice/cloud-platform-environments/cmd/push-terraform-module-version@main
name: push version to go-get-module api
if: ${{ github.ref_name == env.LATEST_TAG }}
env:
API_URL: ${{ vars.TERRAFORM_MODULE_VERSIONS_API_URL }}
API_KEY: ${{ secrets.TERRAFORM_MODULE_VERSIONS_API_KEY }}
Expand Down

0 comments on commit 1487d9d

Please sign in to comment.