Skip to content

Commit 54b8887

Browse files
committed
Update the NetHandler submodule automatically
1 parent d731f62 commit 54b8887

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Update submodule
2+
on:
3+
repository_dispatch:
4+
types: update
5+
jobs:
6+
update:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
token: ${{ secrets.PAT }}
12+
ref: ${{ github.event.client_payload.branch }}
13+
submodules: recursive
14+
- name: Update module
15+
run: |
16+
git submodule update --init --recursive --checkout -f --remote -- "${{github.event.client_payload.module}}"
17+
git config --global user.name "GitHub Action"
18+
git config --global user.email "[email protected]"
19+
git commit -am "Update the ${{github.event.client_payload.module}} module"
20+
git push

0 commit comments

Comments
 (0)