Skip to content

Commit

Permalink
Update release_notes.yml (#5949)
Browse files Browse the repository at this point in the history
Ignoring release notes check for PRs of type doc/ci/test
  • Loading branch information
syedzubeen authored Oct 2, 2023
1 parent 6923261 commit b8c3b68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ jobs:
- name: Check release notes
if: steps.changed-files.outputs.any_changed == 'false' && !contains( github.event.pull_request.labels.*.name, 'ignore-for-release-notes')
run: |
# Check if any of the commit messages contain tags ci/docs/test
if git log --pretty=%s origin/main..HEAD | grep -E '^(ci:|docs:|test:)' > /dev/null; then
echo "Skipping release note check for commits with 'ci:', 'docs:', or 'test:' tags."
else
echo "::error::The release notes file is missing, please add one or attach the label 'ignore-for-release-notes' to this PR."
exit 1
fi

0 comments on commit b8c3b68

Please sign in to comment.