-
Notifications
You must be signed in to change notification settings - Fork 6
72 lines (61 loc) · 2.2 KB
/
A-B-C-D.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: A > B > C > D
on:
# A: Triggered on push to the main branch:
# push:
# branches:
# - main
# B: Triggered on manual workflow dispatch:
workflow_dispatch:
## C: Triggered on Wiki changes:
# gollum
permissions:
contents: write
jobs:
call-action1:
uses: ./.github/workflows/A-import-wiki.yml
secrets:
TERMS_WOT_MANAGE_JSON_ENDPOINT: ${{ secrets.TERMS_WOT_MANAGE_JSON_ENDPOINT }}
GENERIC_SCRAPER_JSON_ENDPOINT: ${{ secrets.GENERIC_SCRAPER_JSON_ENDPOINT }}
ANNOTATED_COPIES_JSON_ENDPOINT: ${{ secrets.ANNOTATED_COPIES_JSON_ENDPOINT }}
# Probably not needed, but just in case
pause-after-action1:
needs: call-action1
runs-on: ubuntu-latest
steps:
- name: Pause for 1 second
run: sleep 1
call-action2:
needs: pause-after-action1
uses: ./.github/workflows/B-import-metadata-google-sheet.yml
secrets:
TERMS_WOT_MANAGE_JSON_ENDPOINT: ${{ secrets.TERMS_WOT_MANAGE_JSON_ENDPOINT }}
GENERIC_SCRAPER_JSON_ENDPOINT: ${{ secrets.GENERIC_SCRAPER_JSON_ENDPOINT }}
ANNOTATED_COPIES_JSON_ENDPOINT: ${{ secrets.ANNOTATED_COPIES_JSON_ENDPOINT }}
# Probably not needed, but just in case
pause-after-action2:
needs: call-action2
runs-on: ubuntu-latest
steps:
- name: Pause for 1 second
run: sleep 1
call-action3:
needs: pause-after-action2
uses: ./.github/workflows/C-import-external-glossaries.yml
secrets:
TERMS_WOT_MANAGE_JSON_ENDPOINT: ${{ secrets.TERMS_WOT_MANAGE_JSON_ENDPOINT }}
GENERIC_SCRAPER_JSON_ENDPOINT: ${{ secrets.GENERIC_SCRAPER_JSON_ENDPOINT }}
ANNOTATED_COPIES_JSON_ENDPOINT: ${{ secrets.ANNOTATED_COPIES_JSON_ENDPOINT }}
# Probably not needed, but just in case
pause-after-action3:
needs: call-action3
runs-on: ubuntu-latest
steps:
- name: Pause for 1 second
run: sleep 1
call-action4:
needs: pause-after-action3
uses: ./.github/workflows/D-deploy-to-gh-pages.yml
secrets:
TERMS_WOT_MANAGE_JSON_ENDPOINT: ${{ secrets.TERMS_WOT_MANAGE_JSON_ENDPOINT }}
GENERIC_SCRAPER_JSON_ENDPOINT: ${{ secrets.GENERIC_SCRAPER_JSON_ENDPOINT }}
ANNOTATED_COPIES_JSON_ENDPOINT: ${{ secrets.ANNOTATED_COPIES_JSON_ENDPOINT }}