Skip to content

Commit

Permalink
feat: Updated changelog workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed May 25, 2024
1 parent bfb5a5a commit 919a110
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ jobs:
java-version: '21'
distribution: 'temurin'

- run: echo "previous_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo '')" >> $GITHUB_ENV
- name: Generate changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: env.previous_tag
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
base-ref: ${{needs.version.outputs.version}}

- name: Get the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"

- name: Create github release
id: create_release
Expand Down

0 comments on commit 919a110

Please sign in to comment.