From d00159138d8dd9b769691f94c6b96c46bb9bd17e Mon Sep 17 00:00:00 2001 From: Headgent Development Date: Fri, 12 Jun 2026 18:38:32 +0200 Subject: [PATCH] ci: keepalive job resets scheduled-workflow auto-disable timer GitHub disables scheduled workflows after 60 days of repo inactivity (disabled_inactivity). The keepalive job re-enables the workflow on every scheduled run via the Actions API, resetting the timer. Runs only on schedule events; skipped on PRs and pushes. --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5dac4b8..1d4bc93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,19 @@ concurrency: cancel-in-progress: true jobs: + keepalive: + # Resets GitHub's 60-day inactivity timer so the scheduled rebuild + # never falls into disabled_inactivity again (phpfpm was dead 2026-05-31..06-12). + if: github.event_name == 'schedule' + runs-on: ubuntu-latest + permissions: + actions: write + steps: + - name: Re-enable workflow (keepalive) + env: + GH_TOKEN: ${{ github.token }} + run: gh api -X PUT repos/${{ github.repository }}/actions/workflows/ci.yml/enable + build-test-and-push: runs-on: ubuntu-latest strategy: