chore(deps): update pre-commit hook renovatebot/pre-commit-hooks to v43.253.1 #1124
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: Enforce update to changelog | |
| permissions: {} | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| branches: | |
| - main | |
| jobs: | |
| changelog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Skip if PR has no-changelog label | |
| if: "contains( github.event.pull_request.labels.*.name, 'no-changelog')" | |
| run: | | |
| echo "✅ Skipping changelog check due to no-changelog label" | |
| - name: Check changelog has been updated | |
| if: "!contains(github.event.pull_request.labels.*.name, 'no-changelog')" | |
| run: | | |
| git fetch origin main | |
| # Check for a non-whitespace change to CHANGELOG.md | |
| if git diff --ignore-all-space --name-only origin/main...HEAD | grep -q "^CHANGELOG.md$"; then | |
| echo "✅ Changelog has been updated" | |
| else | |
| echo "❌ CHANGELOG.md must be updated in this PR" | |
| echo " (or add the 'no-changelog' label to bypass)" | |
| exit 1 | |
| fi |