-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.25 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
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
defaults:
run:
working-directory: /home/runner/work/compiler_log/mikiken.net
steps:
- name: Clone repository
run: |
pwd
git clone https://github.com/mikiken/mikiken.net.git --recursive
cd mikiken.net
pwd
ls -la
working-directory: /home/runner/work/compiler_log/
- name: Configure git
run: |
pwd
git config --local user.name "mikiken"
git config --local user.email "[email protected]"
git remote set-url origin https://mikiken:${{secrets.GITHUB_TOKEN}}@github.com/mikiken/mikiken.net.git
- 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 via github-actions"
- name: Push changes
run : git push origin main