codemagic-ci-cd / codemagic-docs

Here you’ll find some essential information for setting up CI/CD for your mobile apps with Codemagic.
https://docs.codemagic.io
MIT License
83 stars 121 forks source link

Workflow ID returned with GET applications can not be used to trigger a build #2071

Closed boozook closed 1 year ago

boozook commented 1 year ago

Discussed in https://github.com/orgs/codemagic-ci-cd/discussions/1252

Originally posted by **abbeyjackson** December 21, 2022 I am using the API to trigger a build. Before triggering I do a GET call to get applications which contains a list of the workflowIds and workflowNames. The workflow id that is returned is named "Default workflow". But I don't have anything called that, right now I only have the sample workflow ("Codemagic Sample Workflow") that is added to the yaml configuration when you go through the wizard. When I trigger the build using the workflow that is returned (which, remember is for "Default Workflow") the build fails because the workflow doesn't exist. I'm not sure where to go from here, has anyone seen this behaviour before?

I have same problem. I can't determine ID of any my workflows that defined in the codemagic.yaml. As well as I can't trigger it via API because don't know an ID. As mentioned multiple times above, we're know only ID of "Default Workflow", nothing more. Any build within other workflow have id that is null.

Screenshot 2023-09-22 at 23 58 21

Also I see field fileWorkflowIds in the API's response, but it always empty array.

boozook commented 1 year ago

Self-answered in that discussion just now.