Skip to content

Commit 383a3c6

Browse files
committed
check for news fragment file
1 parent 8a4b59d commit 383a3c6

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
NUMBA_NUM_THREADS: 1
1313
MPLBACKEND: Agg
1414
PYTEST_ADDOPTS: --color=yes
15+
GITHUB_PR_NUMBER: ${{ github.event.number }}
1516

1617
jobs:
1718
tests:
@@ -152,3 +153,19 @@ jobs:
152153
FOLDER: docs/_build/html
153154
CLEAN: true
154155
SINGLE_COMMIT: true
156+
157+
changelog:
158+
runs-on: ubuntu-latest
159+
steps:
160+
- uses: actions/checkout@v3
161+
with:
162+
fetch-depth: 0
163+
164+
- name: Set environment
165+
run: echo FRAGMENT_NAME="docs/changes/${GITHUB_PR_NUMBER}.*.rst" >> $GITHUB_ENV
166+
167+
- name: Check for news fragment
168+
uses: andstor/file-existence-action@v2
169+
with:
170+
files: ${{ env.FRAGMENT_NAME }}
171+
fail: true

0 commit comments

Comments
 (0)