Skip to content

Commit b98b2d1

Browse files
authored
Submodule Action
1 parent 16bcb5b commit b98b2d1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Update Submodules
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: recursive
15+
- name: Update module
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
run: |
19+
git submodule update --remote --merge
20+
git config --global user.name "GitHub Action"
21+
git config --global user.email "[email protected]"
22+
git commit -am "update submodules"
23+
# git push
24+

0 commit comments

Comments
 (0)