-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1015 Bytes
/
release.yaml
File metadata and controls
37 lines (31 loc) · 1015 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
30
31
32
33
34
35
36
37
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout depender SLCore
uses: actions/checkout@v2
with:
repository: 'CoagulateSL/SLCore'
path: SLCore
token: ${{ secrets.PACKAGE_READ }}
submodules: true
- name: Git Submodule Update
working-directory: SLCore
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Commit update
working-directory: SLCore
run: |
git config --global user.name 'Git bot'
git config --global user.email 'bot@noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/CoagulateSL/SLCore
git commit -am "Updated JavaCore" && git push || echo "No changes to commit"