Skip to content

Commit

Permalink
[Internal] Add workflow to validate NEXT_CHANGELO.go updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed Jan 28, 2025
1 parent 3746ee4 commit 5862a0a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/next-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check for NEXT_CHANGELOG.go Changes

on:
pull_request:

jobs:
check-next-changelog:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Filter paths to check for NEXT_CHANGELOG.go
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
next_changelog:
- 'NEXT_CHANGELOG.go'
- name: Fail if NEXT_CHANGELOG.go has not changed
run: |
if [[ "${{ steps.filter.outputs.next_changelog }}" != "true" ]]; then
echo "Error: No NEXT_CHANGELOG.go file changed in this PR."
exit 1
fi

0 comments on commit 5862a0a

Please sign in to comment.