-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Wait and Get Workflow Output #260
Comments
Hi @nibanks The way that GitHub have designed this API means that there is no response other than So, unfortunately, there is no simple way to wait for a response from the dispatch. If you need that kind of behaviour you would need to build it yourself, perhaps with some shared storage and polling the result. |
Thanks for the quick response. How easy is it to use the GitHub rest API to try to find the workflow that should have been started from this trigger? And then poll its status? |
Sorry, I don't know. If you come up with a good solution please let me know! 😄 |
So, I have come up with a solution. In the workflow that gets triggered, I have two separate jobs:
Then I have this script that uses the |
Ultimately, I was able to refactor everything into one simple PowerShell script: run-workflow.ps1. I eliminated the need for the completion job, but still need the "name" job for identification. So, I'm not sure how feasible a "standard" solution will be. |
Hello @peter-evans are we able to make this available in your repo please? |
@ansonngch-Sephora At the moment I'm not interested in maintaining and supporting a solution for this. However, I can pin this issue so people can find @nibanks solution more easily. |
I wrote this as POC, would you be interested in adding it? I was thinking the ' Wait for Workflow Completion ' could be added to your action ? ` - name: Trigger Cypress Workflow
|
Hello! While reading the docs here, it's not clear to me if this will wait on the result of the other repo's workflow or if it returns the results of that workflow execution. Does it? If so, how does that work? It'd be great if you could add some docs. If it doesn't work, is there any way to accomplish it?
The text was updated successfully, but these errors were encountered: