🤪防止工作流因超时失效

This commit is contained in:
2024-09-05 20:08:14 +08:00
parent e4887b8f01
commit f49db80e4e
7 changed files with 55 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ jobs:
- name: Commit changes
run: |
mkdir pages
cp -r main index.html all.json errors.json pages/
cp -r main ./static/index.html ./static/readme.md all.json errors.json pages/
cd pages
git init
git add .
@@ -75,4 +75,18 @@ jobs:
uses: Mattraks/delete-workflow-runs@v2
with:
retain_days: 30
keep_minimum_runs: 6
keep_minimum_runs: 6
keepalive-workflow:
name: Keepalive Workflow
if: ${{ always() }}
needs: friend-circle-lite
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: actions/checkout@v4
- uses: gautamkrishnar/keepalive-workflow@v2
with:
committer_username: "github-actions[bot]"
committer_email: "github-actions[bot]@users.noreply.github.com"