forked from TheStarport/KnowledgeBase
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 763 Bytes
/
submodule.yml
File metadata and controls
29 lines (25 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Send submodule updates to parent repo
on:
push:
branches:
- master
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: TheStarport/StarportDocusaurus
token: ${{ secrets.DOCUSAURUS_PAT }}
submodules: true
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions - update submodules"
git add --all
git commit -m "Update submodules" || echo "No changes to commit"
git push