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 2b7368a
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: # Trigger on pull request events

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

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

- name: List all changed files in the PR
id: changed-files
run: |
# Get the list of changed files in the entire PR
echo "files=$(jq -r '.pull_request.files[].filename' < "${{ github.event_path }}")" >> $GITHUB_ENV
- name: Verify NEXT_CHANGELOG.go was modified
run: |
# Check if NEXT_CHANGELOG.go exists in the list of changed files
echo "$GITHUB_ENV"
if [[ ! "$files" =~ NEXT_CHANGELOG\.go ]]; then
echo "::warning file=NEXT_CHANGELOG.go not modified in this PR. This is just a reminder. It is not required to change it."
exit 1
fi

0 comments on commit 2b7368a

Please sign in to comment.