Skip to content

Commit

Permalink
factor out keep alive
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Feb 24, 2025
1 parent a2bc705 commit 4e1851d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/release-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ on:
- cron: '0 12 * * 0'

jobs:
keep-alive:
runs-on: ubuntu-latest
steps:
- name: Keep cronjob based triggers of GitHub workflows alive
uses: PhrozenByte/gh-workflow-immortality@v1
with:
secret: ${{ secrets.GH_TOKEN }}
repos: ${{ github.repository }}

release-sync:
runs-on: ubuntu-latest
steps:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/workflow-keep-alive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Workflow Keep Alive

on:
schedule:
# run once a month on the first day of the month at 00:20 UTC
- cron: '20 0 1 * *'
workflow_dispatch: {}

jobs:
keepalive:
name: GitHub Workflow Immortality

runs-on: ubuntu-latest
permissions: {}

steps:
- name: Keep cronjob based triggers of GitHub workflows alive
uses: PhrozenByte/gh-workflow-immortality@v1
with:
secret: ${{ secrets.GH_TOKEN }}
repos: ${{ github.repository }}

0 comments on commit 4e1851d

Please sign in to comment.