Skip to content

Cleanup Actions Runs #44

Cleanup Actions Runs

Cleanup Actions Runs #44

Workflow file for this run

name: Cleanup Actions Runs
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # 每周日00:00执行
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: "utils/cleanup_actions.py"
- name: Install dependencies
run: |
pip install requests
- name: cleanup UserScripts
env:
GITHUB_TOKEN: ${{ secrets.DELETE_ACTIONS_RUNS }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
run: |
python utils/cleanup_actions.py
- name: cleanup UserScriptsHistory
env:
GITHUB_TOKEN: ${{ secrets.DELETE_ACTIONS_RUNS }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: "UserScriptsHistory"
run: |
python utils/cleanup_actions.py