-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 847 Bytes
/
update.yml
File metadata and controls
28 lines (25 loc) · 847 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
name: Update repository
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
updater:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
with:
submodules: true
- name: Update submodules
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Configure git author
run: |
git config user.name "GitHub Actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: commit
run: |
git add .
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"