-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Only check for news entries if src/ changed
Signed-off-by: Stefanie Molin <24376333+stefmolin@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
38 additions
and
21 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,23 @@ | ||
name: News entry check | ||
on: | ||
pull_request: | ||
paths: | ||
- "src/**" | ||
types: | ||
- "opened" | ||
- "reopened" | ||
- "synchronize" | ||
- "labeled" | ||
- "unlabeled" | ||
|
||
jobs: | ||
news_entry_check: | ||
runs-on: ubuntu-latest | ||
name: Check for news entry | ||
steps: | ||
- name: "Check for news entry" | ||
uses: brettcannon/check-for-changed-files@v1 | ||
with: | ||
file-pattern: "news/*.rst" | ||
skip-label: "skip news" | ||
failure-message: "Missing a news file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request" |
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,30 +1,24 @@ | ||
name: Sanity check | ||
on: | ||
on: | ||
pull_request: | ||
types: | ||
- "opened" | ||
- "reopened" | ||
- "synchronize" | ||
- "labeled" | ||
- "unlabeled" | ||
- "opened" | ||
- "reopened" | ||
- "synchronize" | ||
- "labeled" | ||
- "unlabeled" | ||
|
||
jobs: | ||
commits_check_job: | ||
runs-on: ubuntu-latest | ||
name: Commits Check | ||
steps: | ||
- name: Get PR Commits | ||
id: 'get-pr-commits' | ||
uses: tim-actions/get-pr-commits@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: DCO Check | ||
uses: tim-actions/dco@master | ||
with: | ||
commits: ${{ steps.get-pr-commits.outputs.commits }} | ||
- name: "Check for news entry" | ||
uses: brettcannon/check-for-changed-files@v1 | ||
with: | ||
file-pattern: "news/*.rst" | ||
skip-label: "skip news" | ||
failure-message: "Missing a news file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request" | ||
- name: Get PR Commits | ||
id: "get-pr-commits" | ||
uses: tim-actions/get-pr-commits@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: DCO Check | ||
uses: tim-actions/dco@master | ||
with: | ||
commits: ${{ steps.get-pr-commits.outputs.commits }} |