forked from sdr-enthusiasts/plane-alert-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate README.md Updates on PRs (sdr-enthusiasts#364)
* Automate README.md updates on Changes * Update Planefence Github path * docs: add mustache template warning comment * docs: update contributing.md Update the contributing.md so that people are aware that the README is dynamically generated. --------- Co-authored-by: rickstaa <[email protected]>
- Loading branch information
Showing
8 changed files
with
392 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Update README.md for Changes | ||
|
||
permissions: | ||
contents: write # Allow action to write back changes to repository. | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- "plane-alert-db.csv" | ||
- "plane-alert-ukraine.csv" | ||
- "plane-alert-pia.csv" | ||
- "plane_images.csv" | ||
- "scripts/update_readme.py" | ||
|
||
jobs: | ||
updateREADME.md: | ||
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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.