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: Create and Run a Custom JavaScript Action to Check TODO Comments in Code

name: Custom JavaScript Action - TODO Checker

on:
  workflow_dispatch:

jobs:
  check-todos:
    runs-on: ubuntu-latest

    steps:
      # Checkout the repository
      - name: Checkout code
        uses: actions/checkout@v4

      # Run the custom JavaScript action
      - name: Run TODO Checker
        uses: ./.github/actions/todo-checker-javascript-action
        with:
          path: './src' # Directory to scan
          strict: false # Do not fail the build if todos are found