build(deps): Bump tj-actions/changed-files from 46 to 47 #4
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| pull_request: | |
| jobs: | |
| changelog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check if CHANGELOG.md changed | |
| id: changed_files | |
| uses: tj-actions/changed-files@v47 | |
| with: | |
| files: | | |
| CHANGELOG.md | |
| - name: Enforce changelog update for PRs | |
| if: github.actor != 'dependabot[bot]' | |
| run: | | |
| if [[ "${{ steps.changed_files.outputs.any_changed }}" != "true" ]]; then | |
| echo "CHANGELOG.md must be updated in this PR (or use dependabot flow)." | |
| exit 1 | |
| fi | |
| - name: Validate Keep a Changelog structure | |
| run: | | |
| grep -q '^## \[Unreleased\]' CHANGELOG.md |