-
Notifications
You must be signed in to change notification settings - Fork 3
82 lines (67 loc) · 2.07 KB
/
main.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
73
74
75
76
77
78
79
80
81
82
name: CI
on:
repository_dispatch:
types: [dispatch-katacoda-scenarios]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: choose random polling time
id: randompoll
uses: ddradar/[email protected]
with:
contents: |
1
3
5
9
13
- name: Wait for parallel workflows to finish
uses: softprops/[email protected]
with:
poll-interval-seconds: ${{ steps.randompoll.outputs.selected }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout tutorial-compiler
uses: actions/checkout@v2
with:
repository: devonfw-tutorials/tutorial-compiler
path: compiler
- name: Checkout playbooks
uses: actions/checkout@v2
with:
repository: devonfw-tutorials/tutorials
path: compiler/playbooks
- uses: actions/setup-node@v2
with:
node-version: '12'
- name: install TS
run: |
cd compiler
npm install typescript
- name: npm install compiler
run: |
cd compiler
npm install
- name: Checkout
uses: actions/checkout@v2
with:
path: compiler/repo
- name: npm install repo
run: |
cd compiler/repo
npm install
- name: create tutorials and courses
working-directory: ./compiler
run: node repo/publishTutorials.js $GITHUB_WORKSPACE
- name: publish tutorials and courses
working-directory: ./compiler
run: bash repo/publish.sh
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: devonfw/devonfw-guide
event-type: dispatch-update-guide