Skip to content

Commit

Permalink
Create gh-workflow-immortality.yml
Browse files Browse the repository at this point in the history
Added a new GH action in order to prevent the auto-disable from GH when no actions for 60 days are made in the repo 
Rif. https://github.com/marketplace/actions/github-workflow-immortality
  • Loading branch information
cristianosticca-pagopa authored Dec 23, 2024
1 parent b7e2ba8 commit f6c3e34
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/gh-workflow-immortality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: GitHub Workflow Immortality

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_WORKFLOW_IMMORTALITY }}

0 comments on commit f6c3e34

Please sign in to comment.