Skip to content

Commit c1c5695

Browse files
Merge pull request #65 from GuentherJulian/feature/buildWorkflow
workflow to trigger katacoda-scenarios repo
2 parents c964694 + 2031563 commit c1c5695

2 files changed

Lines changed: 41 additions & 3 deletions

File tree

.github/workflows/buildMain.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
workflow_dispatch:
8+
jobs:
9+
build_main:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout tutorial-compiler
14+
uses: actions/checkout@v2
15+
with:
16+
repository: devonfw-tutorials/tutorial-compiler
17+
18+
- name: Checkout playbooks
19+
uses: actions/checkout@v2
20+
with:
21+
repository: devonfw-tutorials/tutorials
22+
path: playbooks
23+
24+
- uses: actions/setup-node@v2-beta
25+
26+
- name: install TS
27+
run: npm install typescript
28+
29+
- name: npm install
30+
run: npm install
31+
32+
- name: run buildRun.sh
33+
run: sh buildRun.sh
34+
35+
- name: Repository dispatch
36+
uses: peter-evans/repository-dispatch@v1
37+
with:
38+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
39+
repository: devonfw-tutorials/katacoda-scenarios
40+
event-type: dispatch-katacoda-scenarios
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
75
branches: [ main ]
86

97
workflow_dispatch:
108
jobs:
11-
build:
9+
build_pullRequest:
1210
runs-on: ubuntu-latest
1311

1412
steps:

0 commit comments

Comments
 (0)