npalm / action-docs

Generate docs for GitHub actions
MIT License
74 stars 22 forks source link

Error when using workflow_call trigger #659

Open Jonmacb opened 2 months ago

Jonmacb commented 2 months ago

I receive the below error when running on a workflow file with a trigger of workflow_call. I've tested multiple workflow files and if I change it to another trigger such as push it works as expected. I'm using version 2.4.2.

Cannot read properties of undefined (reading 'replace')

eg.

on:
  workflow_call:
    inputs:
      IMAGEDIR:
        required: true
        type: string
      IMAGENAME:
        required: false
        type: string
        default: ""
npalm commented 1 week ago

Description is required according GH docs: https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#inputsinput_iddescription