Skip to content

Commit

Permalink
ci: Change logic to get previous tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
en-milie committed May 26, 2024
1 parent 91a7d2c commit b33f5c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ jobs:
- name: Get Previous Tag
id: get_previous_tag
run: |
CURRENT_TAG=${GITHUB_REF#refs/tags/}
echo "CURRENT_TAG=$CURRENT_TAG"
PREVIOUS_TAG=$(git describe --tags --abbrev=0 $CURRENT_TAG^)
PREVIOUS_TAG=$(git describe --tags --abbrev=0 cats-${{ github.event.inputs.releaseversion }}^)
echo "PREVIOUS_TAG=$PREVIOUS_TAG"
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV
Expand Down

0 comments on commit b33f5c6

Please sign in to comment.