on: pull_request: types: - "opened" - "reopened" - "synchronize" - "labeled" - "unlabeled" jobs: check_changes: runs-on: ubuntu-latest name: "Check that changes is described" steps: - uses: actions/checkout@master - name: Set up Python 3.10 uses: actions/setup-python@v2 with: python-version: "3.10" - name: Install towncrier run: pip install towncrier - name: "Check changelog" env: BASE_BRANCH: ${{ github.base_ref }} run: | git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH} towncrier check --compare-with origin/${BASE_BRANCH} - if: "failure()" run: echo "FAILED" - if: "success()" run: echo "PASS"