Bump peter-evans/create-pull-request from 6 to 7 #32
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: Changelog CI | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] # Trigger on PR open, reopen, and updates | |
workflow_dispatch: # Allow manual triggering | |
jobs: | |
changelog: # Renamed job to 'changelog' for clarity | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # Required to modify the CHANGELOG.md file | |
pull-requests: write # Required to comment on the PR if there's an issue. | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Fetch all history to generate changelog accurately | |
- name: Run Changelog CI | |
uses: Release-Tooling/[email protected] # Use a forked, maintained version | |
with: | |
configFile: .github/changelog-ci-config.json # Use a config file (RECOMMENDED) | |
token: ${{ secrets.GITHUB_TOKEN }} # Use the GITHUB_TOKEN | |
- name: Commit changes (if any) | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
branch: ${{ github.head_ref }} # Commit to the PR branch | |
commit_message: 'docs: update CHANGELOG.md [skip ci]' | |
file_pattern: CHANGELOG.md |