Skip to content

[plan] Generate action.yml files for JavaScript modules #5950

@github-actions

Description

@github-actions

Objective

Create tooling to automatically generate action.yml metadata files for each JavaScript module in pkg/workflow/js/.

Context

Each custom action needs an action.yml file defining its inputs, outputs, and runtime. We have 200+ JavaScript files that need to be converted.

Approach

  1. Create a script to analyze JavaScript files and extract:
    • Required inputs (from core.getInput() calls)
    • Outputs (from core.setOutput() calls)
    • Dependencies
  2. Generate action.yml with structure:
    name: 'Action Name'
    description: 'Description from JSDoc or filename'
    inputs:
      input-name:
        description: 'Input description'
        required: true
    outputs:
      output-name:
        description: 'Output description'
    runs:
      using: 'node20'
      main: 'index.js'
  3. Generate README.md for each action
  4. Create script to bundle JavaScript for each action
  5. Run for a subset of actions first (5-10) as proof of concept

Files to Create

  • Create: scripts/generate-action-metadata.js
  • Create: actions/{action-name}/action.yml (for each action)
  • Create: actions/{action-name}/README.md (for each action)
  • Create: actions/{action-name}/index.js (bundled JavaScript)

Acceptance Criteria

AI generated by Plan Command for #5946

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions