-
Notifications
You must be signed in to change notification settings - Fork 27
58 lines (48 loc) · 1.57 KB
/
airac.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Automatic AIRAC actions
on:
repository_dispatch:
types: [auto_airac_actions]
workflow_dispatch:
jobs:
airac:
name: Perform AIRAC actions
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "VATSIM UK"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: pip install -r workflows/airac/requirements.txt
- name: Update sector file and GNG data
env:
REMOTE_KEY: ${{ secrets.GITHUB_TOKEN }}
run: |
python workflows/airac/auto_airac_actions.py
echo "airac=$(cat airac.txt)" >> "$GITHUB_ENV"
rm airac.txt
- name: Commit changes
run: |
git add .
git commit -m "Update sector file and GNG data"
- name: Update SMR labels
run: |
bash workflows/airac/update-smr-labels.sh
- name: Commit changes
run: |
git add .
git commit -m "Update SMR labels"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: sf_${{ env.airac }}
title: ${{ env.airac }} Sector File Update
body: This pull request was automatically generated to update the sector file to AIRAC ${{ env.airac }}.
reviewers: luke11brown