mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 06:34:33 +01:00
30 lines
702 B
YAML
30 lines
702 B
YAML
name: File descriptions
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
|
|
|
jobs:
|
|
file-descriptions:
|
|
name: File descriptions
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 4
|
|
|
|
- name: Get pull-request commits
|
|
uses: OpenTTD/actions/checkout-pull-request@v6
|
|
|
|
- name: Check descriptions of source files
|
|
run: |
|
|
git diff-tree --no-commit-id --name-only -r HEAD HEAD^ > modified_files.txt
|
|
cat modified_files.txt
|
|
set -ex
|
|
python3 .github/file-descriptions.py modified_files.txt
|