convictional / trigger-workflow-and-wait

Trigger a workflow in another (or same) repository and wait for the job to finish.
MIT License
311 stars 151 forks source link

Incorrect behaviour for triggering workflow with missing input #44

Closed envil closed 2 years ago

envil commented 2 years ago

Expected behaviour

Current behaviour

Action version: 1.3.0

keithweaver commented 2 years ago

I'll look into this. This is true too, Bug: "message": "No ref found for: main" --> Should fail

keithconvictional commented 2 years ago

Confirm that this fails. Copy and paste from a test pipeline. Closing:

curl: (22) The requested URL returned error: 422
api failed:
path: workflows/deploy.yml/dispatches
response: {
  "message": "No ref found for: fail",
  "documentation_url": "https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event"
}