Skip to content

Dispatching to a disabled workflow fails calling workflow after update to v1.2.3 #72

@ghost

Description

Hi,

after updating to v1.2.3 I have noticed that dispatching to a disabled workflow now fails the calling workflow instead of simply logging a warning. Since the code did not change, I expect this is a side-effect of the underlying dependency updates.

Could you please fix this? Thanks!

Logs with v1.2.3:

🏃 Workflow Dispatch Action v1.2.1
🔎 Found workflow, id: X, name: Y, path: Z
🚀 Calling GitHub API to dispatch workflow...
Error: Cannot trigger a 'workflow_dispatch' on a disabled workflow - https://docs.github.com/rest/actions/workflows#create-a-workflow-dispatch-event

Expected (logs with v.1.2.2):

🏃 Workflow Dispatch Action v1.2.1
🔎 Found workflow, id: X, name: Y, path: Z
🚀 Calling GitHub API to dispatch workflow...
Warning: Workflow is disabled, no action was taken

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions