Skip to content

Commit

Permalink
check for news fragment file
Browse files Browse the repository at this point in the history
  • Loading branch information
StFroese committed Dec 9, 2022
1 parent 09d0316 commit 52b660b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
NUMBA_NUM_THREADS: 1
MPLBACKEND: Agg
PYTEST_ADDOPTS: --color=yes
GITHUB_PR_NUMBER: ${{ github.event.number }}

jobs:
tests:
Expand Down Expand Up @@ -152,3 +153,19 @@ jobs:
FOLDER: docs/_build/html
CLEAN: true
SINGLE_COMMIT: true

changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set environment
run: echo FRAGMENT_NAME="docs/changes/${GITHUB_PR_NUMBER}.*.rst" >> $GITHUB_ENV

- name: Check for news fragment
uses: andstor/file-existence-action@v2
with:
files: ${{ env.FRAGMENT_NAME }}
fail: true

0 comments on commit 52b660b

Please sign in to comment.