From a7113683656c11381cb0ac7d397cf0e4bd7e2de2 Mon Sep 17 00:00:00 2001 From: nrslib <38722970+nrslib@users.noreply.github.com> Date: Fri, 6 Feb 2026 00:01:23 +0900 Subject: [PATCH] =?UTF-8?q?CI:=20skipped=20=E3=81=AA=20TAKT=20Action=20?= =?UTF-8?q?=E3=83=A9=E3=83=B3=E3=82=92=E9=80=B1=E6=AC=A1=E3=81=A7=E8=87=AA?= =?UTF-8?q?=E5=8B=95=E5=89=8A=E9=99=A4=E3=81=99=E3=82=8B=20Action=20?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cleanup-skipped-runs.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/cleanup-skipped-runs.yml diff --git a/.github/workflows/cleanup-skipped-runs.yml b/.github/workflows/cleanup-skipped-runs.yml new file mode 100644 index 0000000..97db529 --- /dev/null +++ b/.github/workflows/cleanup-skipped-runs.yml @@ -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 {}