Move newsfragment check to a separate workflow (#1193)
... to make sure we still get a preview even if there is no newsfragment.
This commit is contained in:
parent
69ff51c017
commit
737260edbe
2 changed files with 18 additions and 12 deletions
18
.github/workflows/checks.yaml
vendored
Normal file
18
.github/workflows/checks.yaml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# workflow steps that ought to pass on a PR, but shouldn't block a preview.
|
||||||
|
|
||||||
|
name: "Checks"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-newsfragments:
|
||||||
|
name: "🔎 Check that new newsfragments are valid"
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- run: scripts/check-newsfragments
|
||||||
|
env:
|
||||||
|
PULL_REQUEST_NUMBER: ${{ github.event.number }}
|
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -45,18 +45,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
/env/bin/python scripts/check-event-schema-examples.py
|
/env/bin/python scripts/check-event-schema-examples.py
|
||||||
|
|
||||||
check-newsfragments:
|
|
||||||
name: "🔎 Check that new newsfragments are valid"
|
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- run: scripts/check-newsfragments
|
|
||||||
env:
|
|
||||||
PULL_REQUEST_NUMBER: ${{ github.event.number }}
|
|
||||||
|
|
||||||
calculate-baseurl:
|
calculate-baseurl:
|
||||||
name: "⚙️ Calculate baseURL for later jobs"
|
name: "⚙️ Calculate baseURL for later jobs"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue