-
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1 KB
/
module.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
name: 'Update Carch Submodule'
on:
push:
branches:
- 'main'
paths:
- '**'
workflow_dispatch:
permissions:
contents: write
actions: read
jobs:
update-submodule:
runs-on: ubuntu-latest
steps:
- name: Checkout documentation repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set Git identity
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Initialize and update submodules
run: |
git submodule init
git submodule update
- name: Pull latest changes for submodule
run: |
cd carch
git fetch --all
git checkout main
git pull origin main
- name: Commit and push changes to the docs repository
run: |
git add carch
git commit -m "Update carch submodule"
git push origin main