Skip to content

Commit d151e1a

Browse files
committed
Keep GitHub workflow alive
GitHub disables workflows if there is no activity in the repository after 60 days. Run a separate standalone job to re-enable the workflow on a regular scheduled job. Signed-off-by: Christopher Obbard <[email protected]>
1 parent 854cde8 commit d151e1a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,18 @@ jobs:
320320
with:
321321
jobs: ${{ toJSON(needs) }}
322322

323+
# Keep workflow alive
324+
# See https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#disabling-and-enabling-workflows
325+
workflow-keepalive:
326+
if: github.event_name == 'schedule'
327+
runs-on: ubuntu-latest
328+
needs:
329+
- allgreen
330+
permissions:
331+
actions: write
332+
steps:
333+
- uses: liskin/[email protected]
334+
323335
publish-github:
324336
name: Publish to GHCR
325337
needs:

0 commit comments

Comments
 (0)