Skip to content

Commit aca174e

Browse files
authored
Update compile.yaml
1 parent 233ea9b commit aca174e

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/compile.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,25 @@ jobs:
2828
PACKAGE_READ: ${{ secrets.PACKAGE_READ }}
2929
working-directory: JavaCore
3030
run: mvn --batch-mode clean compile
31+
- name: Checkout depender SLCore
32+
uses: actions/checkout@v2
33+
with:
34+
repository: 'CoagulateSL/SLCore'
35+
path: SLCore
36+
token: ${{ secrets.PACKAGE_READ }}
37+
submodules: true
38+
- name: Git Submodule Update
39+
run: |
40+
cd SLCore
41+
git pull --recurse-submodules
42+
git submodule update --remote --recursive
43+
- name: Commit update
44+
working-directory: SLCore
45+
run: |
46+
git config --global user.name 'Git bot'
47+
git config --global user.email 'bot@noreply.github.com'
48+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/CoagulateSL/SLCore
49+
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"
3150
3251
3352

0 commit comments

Comments
 (0)