Skip to content

Commit

Permalink
Fix action for Atlantis
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrondelez committed Jun 12, 2024
1 parent c75ef02 commit d9726e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-atlantis-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Get the latest release from our repository
id: get_current_release
run: |
latest_tag=$(curl --silent -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://ghcr.io/v2/skyscrapers/atlantis/tags/list" | jq -r '.tags[]' | grep -v latest | sort -rV | head -n 1)
latest_tag=$(curl --silent -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/orgs/skyscrapers/packages/container/atlantis/versions" | jq -r '.[0].metadata.container.tags[]' | grep -v latest | sort -rV | head -n 1)
echo "Current release: $latest_tag"
echo "::set-output name=current_release::$latest_tag"
- name: Compare releases
Expand Down

0 comments on commit d9726e3

Please sign in to comment.