forked from sdr-enthusiasts/plane-alert-db
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 923 Bytes
/
update_readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Update README.md for Changes
permissions:
contents: write # Allow action to write back changes to repository.
on:
workflow_run:
workflows: [Create derivative databases]
types:
- completed
branches: [main]
jobs:
on-success:
if: github.repository == 'sdr-enthusiasts/plane-alert-db' || ${{ vars.CREATE_DERIVATIVES }}
name: Update README.md documentation for Changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- run: pip install -r ./scripts/requirements.txt
- name: Update README.md for changes in the database files
run: python ./scripts/update_readme.py
- name: Commit README.md
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "refactor: update README.md documentation."