Update go-update.yml

This commit is contained in:
bjdgyc 2024-01-15 10:10:30 +08:00 committed by GitHub
parent 1f5d7d0dab
commit 1df0f60ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@ name: go-update
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * */7" - cron: "1 2 * * 5"
jobs: jobs:
go: go:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -34,9 +34,10 @@ jobs:
git gc --aggressive git gc --aggressive
git add --all git add --all
git commit -m "update go.mod $(date +%Y.%m.%d.%H.%M)" git commit -m "update go.mod $(date +%Y.%m.%d.%H.%M)"
git push -f -u origin dev #git push -f -u origin _autoaction
git push -u origin _autoaction
# 删除无用 workflow runs; # 删除无用 workflow runs;
- name: Delete workflow runs - name: Delete workflow runs
uses: GitRML/delete-workflow-runs@main uses: GitRML/delete-workflow-runs@main
with: with: