Skip to content

Commit 5fc955e

Browse files
authored
Merge branch 'TravelMapping:master' into master
2 parents 067d741 + 9ff9692 commit 5fc955e

21 files changed

Lines changed: 8334 additions & 1646 deletions

.github/workflows/build-json.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,25 @@ jobs:
3838
- name: Check for unknown airport codes
3939
run: python air/scripts/check_unknown_codes.py
4040

41-
- name: Commit unknown_codes.txt
41+
- name: Show modified files
42+
run: |
43+
git status
44+
git diff --name-only
45+
46+
- name: Commit all modified files safely
4247
run: |
4348
git config user.name "GitHub Action"
4449
git config user.email "action@github.com"
45-
git add air/data/unknown_codes.txt
46-
git commit -m "Update list of unknown airport codes" || echo "Nothing to commit"
47-
git push origin master
50+
git add -A
51+
git commit -m "Auto-commit modified files from build" || echo "Nothing to commit"
52+
git pull --rebase origin master
53+
git push
4854
4955
- name: Commit and push updated JSON
5056
run: |
5157
git config user.name "GitHub Action"
5258
git config user.email "action@github.com"
59+
git pull --rebase origin master
5360
git add air/data/*.json
5461
git commit -m "Auto-update JSON from .alist" || echo "Nothing to commit"
5562
git push origin master

.github/workflows/deploy-pages.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Airport Maps
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Build JSON from .alist"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '16'
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.11'
27+
28+
- name: Run build_data.py
29+
run: python air/scripts/build_data.py
30+
31+
- name: Build and Deploy to GitHub Pages
32+
uses: actions/configure-pages@v3
33+
# Add additional steps here as needed based on your actual deployment logic

.github/workflows/update-master-list.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ jobs:
2121
run: |
2222
python air/scripts/extract_codes.py
2323
24-
- name: Commit generated file
24+
- name: Commit generated file safely
2525
run: |
2626
git config user.name "GitHub Actions"
2727
git config user.email "actions@github.com"
2828
git add air/data/airports-master.csv
29-
git commit -m "Update airports-master.csv automatically"
29+
git commit -m "Update airports-master.csv automatically" || echo "Nothing to commit"
30+
git pull --rebase origin master
3031
git push
32+

0 commit comments

Comments
 (0)