Skip to content

Commit

Permalink
chore: Update release workflow to write changelog to file
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Hornhead <[email protected]>
  • Loading branch information
marchingon12 committed May 12, 2024
1 parent 25697ef commit 0f4c61e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@ jobs:
- name: Write changelog to file
run: echo "${{ steps.changelog.outputs.changelog }}" > CHANGELOG.md

- name: Get the branch name
id: branch_name
run: echo "::set-output name=branch::$(if [ "${{ github.event_name }}" = "pull_request" ]; then echo ${{ github.head_ref }}; else echo ${GITHUB_REF#refs/heads/}; fi)"

- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ steps.branch_name.outputs.branch }}
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md

Expand Down

0 comments on commit 0f4c61e

Please sign in to comment.