name: PR Check
on:
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
jobs:
files-changed:
name: files up-to-date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cargo up-to-date
uses: brettcannon/check-for-changed-files@v1
with:
prereq-pattern: Cargo.toml
file-pattern: Cargo.lock
- name: Python dev requirements up-to-date
uses: brettcannon/check-for-changed-files@v1
with:
prereq-pattern: dev-requirements.in
file-pattern: dev-requirements.txt
- name: Man page up-to-date
uses: brettcannon/check-for-changed-files@v1
with:
prereq-pattern: docs/man-page/py.1.md
file-pattern: docs/man-page/py.1
- name: Control flow diagram up-to-date
uses: brettcannon/check-for-changed-files@v1
with:
prereq-pattern: docs/control-flow/control_flow.dot
file-pattern: |
docs/control-flow/control_flow.png
docs/control-flow/control_flow.svg
- name: Changelog fragment
uses: brettcannon/check-for-changed-files@v1
with:
file-pattern: changelog.d/*.md
failure-message: "Missing a changelog fragment file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request"