Skip to content

Commit 0fd3065

Browse files
shymegaluka177
authored andcommitted
Add submodule updater workflow
Signed-off-by: Dom Rodriguez <[email protected]>
1 parent 180e4d4 commit 0fd3065

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Update module
2+
on:
3+
workflow_dispatch:
4+
repository_dispatch:
5+
types: submodule-update
6+
jobs:
7+
update:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Update module
12+
run: |
13+
git submodule update --init --recursive --remote
14+
git config --global user.name "Android Boot Manager (GH Actions)"
15+
git config --global user.email "[email protected]"
16+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
17+
git commit -am "submodules_auto_update: Update submodule - ${{ github.event.client_payload.sha }}@${{ github.event.client_payload.module }}" || true
18+
git push

0 commit comments

Comments
 (0)