Skip to content

Commit

Permalink
Include step for Pull Request in update_changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer authored Jul 29, 2024
1 parent a716a6e commit 387969e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/update_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,19 @@ jobs:
echo "${{ steps.get_release_notes.outputs.notes }}" >> CHANGELOG.md
echo "" >> CHANGELOG.md
- name: Commit and push changes
- name: Create new branch
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git checkout -b update-changelog-${{ steps.get_latest_release.outputs.tag }}
git add CHANGELOG.md
git commit -m 'Update CHANGELOG.md for ${{ steps.get_latest_release.outputs.tag }}'
git push origin HEAD:${{ github.ref }}
git push -u origin update-changelog-${{ steps.get_latest_release.outputs.tag }}
- name: Create Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create \
--title "Update CHANGELOG.md for ${{ steps.get_latest_release.outputs.tag }}" \
--body "This PR updates the CHANGELOG.md file with the release notes for ${{ steps.get_latest_release.outputs.tag }}." \
--head update-changelog-${{ steps.get_latest_release.outputs.tag }} \
--base main

0 comments on commit 387969e

Please sign in to comment.