Scheduled Cron Job #5722
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
name: Scheduled Cron Job | |
on: | |
schedule: | |
- cron: '32 5 * * 1,3' | |
- cron: '30 8 * * *' | |
# - cron: '*/2 * * * *' | |
jobs: | |
testing_cron_schedule_template: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Everyday except Monday and Wednesday | |
if: github.event.schedule != '32 5 * * 1,3' | |
run: echo 'Skipping these on Monday and Wednesday' | |
- name: Every 3 minutes | |
if: github.event.schedule == '0 0 * * *' | |
run: echo 'cron job running once daily' | |
- name: Every 2 minutes Time | |
# if: github.event.schedule == '*/2 * * * *' | |
run: echo 'This will run every time at $(date)' |