workflow-dispatch icon indicating copy to clipboard operation
workflow-dispatch copied to clipboard

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

Open AttNemeth opened this issue 1 year ago • 0 comments

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

AttNemeth avatar Apr 30 '24 11:04 AttNemeth