Keep workflows alive #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub disables workflows after 60 days with no commit | |
name: Keep workflows alive | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: # At 09:00 every Saturday | |
- cron: '0 9 * * SAT' | |
jobs: | |
keep-cron-workflows-alive: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Keep all three workflows alive | |
env: | |
GH_TOKEN: ${{ secrets.GH_WORKFLOW_TOKEN }} | |
run: | | |
gh workflow enable keep_workflows_alive.yml | |
gh workflow enable snyk_scan_aws_beta.yml | |
gh workflow enable snyk_scan_aws_prod.yml |