-
-
Notifications
You must be signed in to change notification settings - Fork 119
79 lines (72 loc) · 2.47 KB
/
update-samples.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
name: Update Samples
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set name
run: git config --global user.name "Robbot"
- name: Set email
run: git config --global user.email "robbot2019@robdangero.us"
- name: Clone Samples
run: git clone https://github.com/Kode/Kinc-Samples.git
- name: Get Kinc-Submodule
working-directory: Kinc-Samples
run: git submodule update --init --remote Kinc
- name: Checkout Kinc
working-directory: Kinc-Samples/Kinc
run: git checkout main
- name: Add Kinc
working-directory: Kinc-Samples
run: git add Kinc
- name: Commit
working-directory: Kinc-Samples
run: git commit -m "Update Kinc"
- name: Push
working-directory: Kinc-Samples
run: git push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/Kinc-Samples.git
env:
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
- name: Clone Kong Samples
run: git clone https://github.com/Kode/KincKong-Samples.git
- name: Get Kinc-Submodule
working-directory: KincKong-Samples
run: git submodule update --init --remote Kinc
- name: Checkout Kinc
working-directory: KincKong-Samples/Kinc
run: git checkout main
- name: Add Kinc
working-directory: KincKong-Samples
run: git add Kinc
- name: Commit
working-directory: KincKong-Samples
run: git commit -m "Update Kinc"
- name: Push
working-directory: KincKong-Samples
run: git push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KincKong-Samples.git
env:
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
- name: Clone Switch Samples
run: git clone https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/Kinc-Samples-Switch.git
env:
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
- name: Get Kinc-Submodule
working-directory: Kinc-Samples-Switch
run: git submodule update --init --remote Kinc
- name: Checkout Kinc
working-directory: Kinc-Samples-Switch/Kinc
run: git checkout main
- name: Add Kinc
working-directory: Kinc-Samples-Switch
run: git add Kinc
- name: Commit
working-directory: Kinc-Samples-Switch
run: git commit -m "Update Kinc"
- name: Push
working-directory: Kinc-Samples-Switch
run: git push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/Kinc-Samples-Switch.git
env:
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}