Skip to content

Commit

Permalink
fix workflow version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhuda committed Aug 3, 2024
1 parent 8d043da commit 64d5227
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ jobs:
id: get_previous_tag
run: |
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
CURRENT_TAG="${{ env.VERSION }}"
PREVIOUS_TAG=$(git tag --sort=-creatordate | awk -v current="${CURRENT_TAG}" '$0 == current {getline; print; exit}')
PREVIOUS_TAG=$(git tag -l | sed -n '$!p' | tail -n 1)
echo "PREVIOUS_TAG=${PREVIOUS_TAG}" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 64d5227

Please sign in to comment.