name: Check Release Notes on: pull_request: {} jobs: check: name: Check release notes if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip_release_notes') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Python 3.9 uses: actions/setup-python@v4 with: python-version: 3.9 - name: Install towncrier run: | python3 -m pip install towncrier==23.6 "importlib_resources<6" - name: Run towncrier run: | git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH} towncrier check --compare-with remotes/origin/${BASE_BRANCH} env: BASE_BRANCH: ${{ github.base_ref }}