-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update changlog CI to use a pre-built workflow.
- Loading branch information
1 parent
033541a
commit dafc220
Showing
1 changed file
with
17 additions
and
8 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 |
---|---|---|
@@ -1,16 +1,25 @@ | ||
name: Ensure changelog | ||
name: Changelog | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, opened, synchronize, reopened] | ||
|
||
# Only cancel in-progress jobs or runs for the current workflow | ||
# This cancels the already triggered workflows for a specific PR without canceling | ||
# other instances of this workflow (other PRs, scheduled triggers, etc) when something | ||
# within that PR re-triggers this CI | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ensure_changelog: | ||
name: Verify that a changelog entry exists for this pull request | ||
changelog: | ||
name: Confirm changelog entry | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- run: grep -P '\[[^\]]*#${{github.event.number}}[,\]]' CHANGES.rst | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-entry-needed') }} | ||
- name: Check change log entry | ||
uses: scientific-python/action-check-changelogfile@6087eddce1d684b0132be651a4dad97699513113 # 0.2 | ||
env: | ||
CHANGELOG_FILENAME: CHANGES.rst | ||
CHECK_MILESTONE: false | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |