-
Notifications
You must be signed in to change notification settings - Fork 31
43 lines (35 loc) · 1.27 KB
/
create_db_derivatives.yaml
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
33
34
35
36
37
38
39
40
41
42
43
name: Create derivative databases
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_images.csv"
- "scripts/create_db_derivatives.py"
jobs:
createDerivativeDatabases:
if: github.repository == 'sdr-enthusiasts/plane-alert-db' || ${{ vars.CREATE_DERIVATIVES }}
name: Update derivative databases
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.10"
cache: "pip"
- run: pip install -r ./scripts/requirements.txt
- name: Update '/400/' paths to '/full/'
run: python ./scripts/update_image_links.py
- name: Create category and images derivative CSV files
run: python ./scripts/create_db_derivatives.py
- name: Create valid category listing
run: python ./scripts/export_categories.py
- name: Update README.md to include changes
run: python ./scripts/update_readme.py
- name: Commit derivative CSV files
uses: stefanzweifel/[email protected]
with:
commit_message: "refactor: update derivative databases."