mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[CD] Added submodule update workflow.
This commit is contained in:
parent
dfb667f578
commit
9a2334f920
1 changed files with 24 additions and 0 deletions
24
.github/workflows/sync.yml
vendored
Normal file
24
.github/workflows/sync.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Update submodules
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Pull & update submodules recursively
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
git submodule update --recursive --remote
|
||||
- name: Commit & push changes
|
||||
run: |
|
||||
git config --global user.name GitHub
|
||||
git config --global user.email actions@github.com
|
||||
git commit -am "[dmitmel] Update submodule" | true
|
||||
git push
|
Loading…
Reference in a new issue