Skip to content

Scheduled Cron Job #5718

Scheduled Cron Job

Scheduled Cron Job #5718

Workflow file for this run

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)'