2019-10-05 19:07:18 +00:00
|
|
|
name: Commit checker
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
2023-02-26 21:36:33 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
|
|
|
|
2019-10-05 19:07:18 +00:00
|
|
|
jobs:
|
|
|
|
commit-checker:
|
|
|
|
name: Commit checker
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-05-13 06:40:39 +00:00
|
|
|
uses: actions/checkout@v3
|
2019-10-05 19:07:18 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 4
|
|
|
|
|
|
|
|
- name: Get pull-request commits
|
2021-05-20 17:12:33 +00:00
|
|
|
uses: OpenTTD/actions/checkout-pull-request@v2
|
2019-10-05 19:07:18 +00:00
|
|
|
|
|
|
|
- name: Check commits
|
2021-05-20 17:12:33 +00:00
|
|
|
uses: OpenTTD/OpenTTD-git-hooks@main
|