Skip to content

Commit

Permalink
fix(CD): generate changelog GH action fails when tagging from same ha…
Browse files Browse the repository at this point in the history
…sh (#2106)

Co-authored-by: Yamil Medina <[email protected]>
  • Loading branch information
MohamadJaara and yamilmedina authored Aug 16, 2023
1 parent 1a49cab commit 6777126
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}})" >> "$GITHUB_ENV"
run: echo "CURRENT_TAG=$(git tag --points-at ${{github.sha}} | head | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(\+|$)')" >> "$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 6777126

Please sign in to comment.