From 27b7e369caa4a5674904718384f5f699a90f654a Mon Sep 17 00:00:00 2001 From: Teo Calin Date: Thu, 8 Oct 2026 12:47:31 +0300 Subject: [PATCH] ci(release-watch): keep the schedule from being disabled for inactivity GitHub disables a public repository's scheduled workflows after 60 days without activity. release-watch was disabled on 2026-09-25, and the package fell four daemon releases behind. Each run now re-enables the workflow through the API, which resets that timer. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release-watch.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release-watch.yml b/.github/workflows/release-watch.yml index 2fa56f0..44e65bf 100644 --- a/.github/workflows/release-watch.yml +++ b/.github/workflows/release-watch.yml @@ -43,6 +43,18 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Keep the schedule enabled + # GitHub disables a public repository's scheduled workflows after + # 60 days without activity. This one was, on 2026-09-25, and the + # package fell four daemon releases behind before anyone noticed. + # Enabling the workflow through the API resets that timer, so each + # run keeps the next ones coming. Never blocks the watch itself. + env: + GH_TOKEN: ${{ github.token }} + run: | + gh api -X PUT "repos/${{ github.repository }}/actions/workflows/release-watch.yml/enable" \ + || echo "::warning::could not re-enable release-watch; GitHub may disable its schedule after 60 days without activity" + - name: Resolve latest upstream version id: latest env: