Update Changelog #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update Changelog" | |
on: | |
release: | |
types: [released] | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: main # Ensure you're checking out the main branch | |
- name: Create update-changelog Branch | |
run: | | |
git checkout -b update-changelog | |
- name: Update Changelog | |
uses: stefanzweifel/changelog-updater-action@v1 | |
with: | |
latest-version: ${{ github.event.release.tag_name }} # Use tag_name for correct version | |
release-notes: ${{ github.event.release.body }} | |
- name: Commit updated CHANGELOG | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
branch: update-changelog # Ensure you're on the update-changelog branch | |
commit_message: "Update CHANGELOG" | |
file_pattern: CHANGELOG.md | |
- name: Push changes and create PR | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
branch: update-changelog | |
title: "Automated Update of CHANGELOG" | |
body: "This PR was created by GitHub Actions to update the CHANGELOG." | |
delete-branch: false |