Skip to content

Commit 99aa6fb

Browse files
committed
Add submodule update workflow
1 parent 4a6f445 commit 99aa6fb

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/update.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Update submodules
2+
3+
on:
4+
repository_dispatch:
5+
types: [update-submodules]
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
token: ${{ secrets.PAT }}
19+
submodules: true
20+
21+
- name: Update submodules
22+
run: git submodule update --remote
23+
24+
- name: Commit changes
25+
run: |
26+
git config --global user.name 'deimonn'
27+
git config --global user.email 'deimonn@users.noreply.github.com'
28+
git commit -am "Update submodules"
29+
git push

0 commit comments

Comments
 (0)