We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d731f62 commit 54b8887Copy full SHA for 54b8887
.github/workflows/update-submodules.yml
@@ -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