Skip to content

Commit

Permalink
build: get 2nd-from-last tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Aug 24, 2022
1 parent f4a62d4 commit f1f37c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Find Previous Release
id: findtag
run: |
echo ::set-output name=previous_release::$(git tag --sort "-committerdate" | head -n 1)
echo ::set-output name=previous_release::$(git tag --sort "-committerdate" | sed -n 2p)
- name: Download artifact
uses: actions/download-artifact@v2
Expand Down

0 comments on commit f1f37c1

Please sign in to comment.