Skip to content

Commit

Permalink
fix: release action by grepping last matched result on tags (#2109)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina authored Aug 16, 2023
1 parent 6777126 commit e21fc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: 'Set current Git tag from commit'
if: "${{ github.event.inputs.current-release-tag == '' }}"
run: echo "CURRENT_TAG=$(git tag --points-at ${{github.sha}} | head | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(\+|$)')" >> "$GITHUB_ENV"
run: echo "CURRENT_TAG=$(git tag --points-at ${{github.sha}} | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(\+|$)' | tail -n 1)" >> "$GITHUB_ENV"

- name: 'Set previous Git tag from commit'
run: echo "PREVIOUS_TAG=$(git tag | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(\+|$)' | tail -n 2 | head -n 1)" >> "$GITHUB_ENV"
Expand Down

0 comments on commit e21fc7f

Please sign in to comment.