-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Internal] Add workflow to validate NEXT_CHANGELO.go updates
- Loading branch information
1 parent
3746ee4
commit 5862a0a
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
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 |