-
Notifications
You must be signed in to change notification settings - Fork 53
34 lines (30 loc) · 962 Bytes
/
update.yaml
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
name: Update
on:
workflow_dispatch:
push:
branches:
- main
paths:
- .github/workflows/Docker-Update.yaml
schedule:
- cron: 0 4 * * *
jobs:
Update:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_TOKEN }}
fetch-depth: 0
submodules: true
- name: Update Submodules
run: git submodule foreach 'git fetch origin; git checkout $(git rev-parse --abbrev-ref HEAD); git reset --hard origin/$(git rev-parse --abbrev-ref HEAD); git submodule update --recursive; git clean -dfx'
- name: Push
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 更新源
skip_dirty_check: false
commit_user_name: Action Bot
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
commit_author: Action <[email protected]>