Skip to content

[pre-commit.ci] pre-commit autoupdate #249

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #249

name: timeline-check
on: [pull_request]
jobs:
towncrier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: |
requirements/timeline-check.txt
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
pip install -U -r requirements/timeline-check.txt
- name: Check existence of news fragment
run: |
git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
python -m towncrier.check --compare-with=origin/${BASE_BRANCH}
env:
BASE_BRANCH: ${{ github.base_ref }}