-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (38 loc) · 1.15 KB
/
Copy pathUpdateWikiSubmodule.yml
File metadata and controls
41 lines (38 loc) · 1.15 KB
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
name: "Update Wiki Submodule"
on:
push:
branches: [ master ]
pull_request:
types: [ opened, reopened ]
branches: [ master ]
schedule:
- cron: "0 18 * * *" # 日本時間で毎日午前三時に自動実行
workflow_dispatch:
jobs:
merge:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: "Switch to Master Branch"
run: |
git fetch origin
git checkout master
- name: "Load Submodule"
run: git submodule update --init --recursive
- name: "Update Wiki Directory"
run: |
cd wiki
git fetch origin
git pull origin master
cd ..
- name: "Configure git user information."
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: "Commit & Push"
run: |
git add wiki
git commit -m "[BOT] Update Wiki Submodule to the Current Latest version" || exit $(($? - 1))
git push