-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding support for waiting on specific job/step completion in t…
…urnstyle (#98) This PR adds in support for two new input fields: * job-to-wait-for * step-to-wait-for The idea of these new inputs allows the turnstyle waiter to examin a previous run's jobs->steps and allows for more granular control of what phase of the workflow to wait on. The use case of this is my company currently needs to split our deployment workflow (gitops commit + argocd sync) across two workflows as we want to make sure the gitops commit runs sequentally. Using a turnstyle at the workflow level means that a subsequent sync from argo would delay the next workflow execution until the subsequent job/steps complete. This PR updates the waiter to, if a previous run is found, and the above inputs are set, make subsequent requests to the ghAPI and check to see if the desired job/step is has finished executing
- Loading branch information
Showing
8 changed files
with
315 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.