CI: skipped な TAKT Action ランを週次で自動削除する Action を追加

This commit is contained in:
nrslib 2026-02-06 00:01:23 +09:00
parent 455eaf8545
commit a711368365

View File

@ -0,0 +1,20 @@
name: Cleanup Skipped Runs
on:
schedule:
- cron: '0 0 * * 0' # 毎週日曜 UTC 0:00
workflow_dispatch: # 手動実行も可能
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Delete skipped TAKT Action runs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
run: |
gh run list --workflow=takt-action.yml --status=skipped --limit=100 --json databaseId --jq '.[].databaseId' | \
xargs -I {} gh run delete {}