Skip to content

github-action/valid-trigger-events

Disallow invalid trigger events.

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule reports when action has invalid on.event_name.

yaml
name: CI

on:
  push:
    branches:
      - main
correct
yaml
name: CI

on:
  foo_bar:
    branches:
      - main
incorrect

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-github-action v0.0.16

🔍 Implementation