Skip to content

Commit

Permalink
retrieve latest tagged release
Browse files Browse the repository at this point in the history
  • Loading branch information
safeer committed Oct 3, 2024
1 parent e150dd3 commit a34b9ab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,19 @@ jobs:
if: github.event_name != 'pull_request' || github.event.action == 'enqueued' || contains( github.event.pull_request.labels.*.name, 'run-all')
runs-on: ubuntu-latest
steps:
- name: Checkout the repository with full history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get latest release tag
run: |
latest_release=$(git tag --sort=-v:refname | grep -v v1 | head -n 1)
echo "Latest release: $latest_release"
echo "LATEST_RELEASE=$latest_release" >> "$GITHUB_OUTPUT"
- name: Checkout previous code
uses: actions/checkout@v4
with:
ref: 'refs/tags/previous-release'
ref: ${{ env.LATEST_RELEASE }}
- name: Init Hermit
uses: cashapp/activate-hermit@v1
with:
Expand Down

0 comments on commit a34b9ab

Please sign in to comment.