-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.24 KB
/
deployment.yaml
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: Update submodule in mikiken/mikiken.net
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
update_submodules:
name: Update submodules
runs-on: ubuntu-20.04
permissions:
actions: write
checks: write
contents: write
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{secrets.APP_ID}}
private_key: ${{secrets.PRIVATE_KEY}}
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: mikiken/mikiken.net
token: ${{ steps.generate_token.outputs.token }}
submodules: recursive
- name: Configure git settings
run: |
pwd
git config --global user.name "mikiken"
git config --global user.email "[email protected]"
- name: Change the revision of submodule
run: |
pwd
cd compiler_log
pwd
git fetch
git reset --hard origin/main
- name: Add and commit files
run: |
pwd
git status
git add .
git commit -m "update submodule: mikiken/compiler_log@${GITHUB_SHA}"
- name: Push changes
run : git push origin main