GitHub Actions Workshop

Master GitHub Actions with hands-on labs and exercises. Learn how to automate workflows, run tests, deploy applications, and more using GitHub's powerful automation platform. This repository has everything you need to get started with continuous integration and continuous deployment.


Project maintained by prasadhonrao Hosted on GitHub Pages — Theme by mattgraham

Solution: Scheduled Workflow

name: Intro - Scheduled Workflow

on:
  workflow_dispatch:
  schedule:
    - cron: '*/5 * * * *' # Every 5 minutes. You can use https://crontab.guru/ to generate cron expressions
  push:
    paths:
      - '.github/workflows/intro-scheduled-workflow.yml'
jobs:
  execute:
    runs-on: ubuntu-latest
    steps:
      - name: Display current date and time
        run: echo "The current date and time is $(date)"