-
Notifications
You must be signed in to change notification settings - Fork 10
30 lines (24 loc) · 784 Bytes
/
ci.yml
File metadata and controls
30 lines (24 loc) · 784 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
name: CI
on:
workflow_dispatch:
jobs:
sync:
name: Sync Submodules
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Git Submodule Update
run: |
git submodule foreach "git fetch origin; git checkout master; git pull --no-rebase origin master"
- name: Commit update
run: |
git config --global user.name 'SysFlow'
git config --global user.email 'sysflow@noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"