Skip to content

Commit

Permalink
Workflow Updates (sdr-enthusiasts#373)
Browse files Browse the repository at this point in the history
* Update Workflows to run properly.

* fix typlo

* Actually include the template...

* Remove unneeded files/script.

* reference create script in worfklow path

* reference correct script in worfklow path

* Remove twitter blocked from workflows

* Linting and logging on update_readme.py.

* reference update_readme.py vs update_readme.yml
  • Loading branch information
Phaeton authored Oct 30, 2023
1 parent 1b91273 commit c77bd12
Show file tree
Hide file tree
Showing 14 changed files with 186 additions and 70,849 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/create_db_derivatives.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
branches: ["main"]
paths:
- "plane-alert-db.csv"
- "plane-alert-twitter-blocked.csv"
- "plane-alert-ukraine.csv"
- "plane_images.csv"
- "scripts/create_db_derivatives.py"
Expand All @@ -29,6 +28,9 @@ jobs:
- name: Create category and images derivative CSV files
run: python ./scripts/create_db_derivatives.py

- name: Update README.md to include changes
run: python ./scripts/update_readme.py

- name: Commit derivative CSV files
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ permissions:
contents: write # Allow action to write back changes to repository.

on:
workflow_run:
workflows: [Create derivative databases]
types:
- completed
branches: [main]
push:
branches: ["main"]
paths:
- "scripts/update_readme.py"
- "readme.mustache"
- "!plane-alert-db.csv"
- "!plane-alert-ukraine.csv"
- "!plane_images.csv"
- "!scripts/create_db_derivatives.py"

jobs:
on-success:
updateREADME:
if: github.repository == 'sdr-enthusiasts/plane-alert-db' || ${{ vars.CREATE_DERIVATIVES }}
name: Update README.md documentation for Changes
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions _bin/README.md

This file was deleted.

12,423 changes: 0 additions & 12,423 deletions _bin/badgers-best-images.csv

This file was deleted.

12,423 changes: 0 additions & 12,423 deletions _bin/badgers-best.csv

This file was deleted.

12,851 changes: 0 additions & 12,851 deletions _bin/plane-alert-db-images.csv

This file was deleted.

12,851 changes: 0 additions & 12,851 deletions _bin/plane-alert-db.csv

This file was deleted.

49 changes: 0 additions & 49 deletions _bin/plane-alert-pia.csv

This file was deleted.

12 changes: 0 additions & 12 deletions _bin/plane-alert-search-terms-to-do.csv

This file was deleted.

7,202 changes: 0 additions & 7,202 deletions _bin/plane-alert-wip.csv

This file was deleted.

12,856 changes: 0 additions & 12,856 deletions _bin/planepix.txt

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ This folder contains several scripts used in the GitHub actions:

- `check_james_planes`: A script that can be used to check if the planes mentioned in https://github.com/sdr-enthusiasts/plane-alert-db/issues/24 are already in the main databases.
- `check_main_databases`: A script that is used to check whether the main databases are correctly formatted.
- `create_db_derivatives`: A script that can be used to create the derivative databases based on the `plane-alert-db.csv`, `plane_images.csv` and `blacklist.txt` files.
- `create_images_reference`: A tiny little script that I used to create the new `plane_images.csv` file. This file will be removed when we are sure the file of the new image is correct.
- `create_db_derivatives`: A script that can be used to create the derivative databases based on the `plane-alert-db.csv` and `plane_images.csv` files.
- `get_unique_bangers_best_items`: A script that can be used to check if the `bangers-best.csv` database contains items not found in the main databases.
- `update_readme`: A script that can be used to automate the README.md updates using the mustache template language and the chevron parser.
96 changes: 0 additions & 96 deletions scripts/create_images_reference.py

This file was deleted.

Loading

0 comments on commit c77bd12

Please sign in to comment.