Skip to content
Discussion options

You must be logged in to vote

@abbeyjackson
I have an answer! Finally!

To trigger your workflow, CM config yaml should be in master/main/default branch and you have to use yaml-field-key as ID of the workflow.
You can get it from API's response in the fileWorkflowId field! 🎉 (see my screenshot above in my prev. comment)

echo '{ "appId": "< APPID >", "workflowId": "< fileWorkflowId >", "branch": "< any branch >" }' | \
curl -H "Content-Type: application/json" \
     -H "x-auth-token: < API_TOKEN >" \
     -vX POST https://api.codemagic.io/builds \
     -d @-

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@icarusdust
Comment options

@abbeyjackson
Comment options

@icarusdust
Comment options

@abbeyjackson
Comment options

@abbeyjackson
Comment options

Comment options

You must be logged in to vote
1 reply
@boozook
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dtrdic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants