Run branch #291
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
# This GitHub Action checks for new news fragments in a pull request. | |
# If no new news fragments are found, the action will fail. | |
name: News Fragments Created | |
on: | |
pull_request: | |
types: [assigned, opened, synchronize, reopened, labeled, unlabeled] | |
jobs: | |
build: | |
name: Check for new news fragments | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install towncrier | |
run: | | |
$CONDA/bin/conda install -c conda-forge towncrier -y | |
- name: Run towncrier check command | |
run: | | |
$CONDA/bin/towncrier check --compare-with origin/develop --config pyproject.toml |