aiogram/.github/workflows/pull_request_changelog.yml
Alex Root Junior 19e7c1266a
Checkout head
2022-03-26 19:05:40 +02:00

37 lines
954 B
YAML

on:
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
- "labeled"
- "unlabeled"
jobs:
check_changes:
runs-on: ubuntu-latest
name: "Check that changes is described"
steps:
- name: "Checkout code"
uses: actions/checkout@master
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: '0'
- 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"