Skip to content

github-action/require-action-name

Require a string action name.

  • 💼 This rule is enabled in the ✅ recommended config.

📖 Rule Details

This rule reports when action has no name or not a string.

yaml
name: CI

on:
  push:
    branches:
      - main
correct
yaml
# empty file
incorrect
yaml
# no name
on:
  push:
    branches:
      - main
incorrect
yaml
# name is empty
name:

on:
  push:
    branches:
      - main
incorrect

🔧 Options

Nothing.

🚀 Version

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

🔍 Implementation