-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
93: Add workflow as a queue target [semver:minor] r=eddiewebb a=soniqua ### Checklist - [x] All new jobs, commands, executors, parameters have descriptions - [x] Examples have been added for any significant new features - [ ] README has been updated, if necessary ### Motivation, issues This change allows users to wait for no occurrences of a target `workflow` to complete. This enables pull-request style checks to be executed across multiple open PRs, without the workflows conflicting. Relates to (but may not close) #76. ### Description add `only-on-workflow` to the orb. - Specify a `workflow` name here for the queue orb to wait for all occurrences of a workflow to finish. - If specified in conjunction with `consider-branch: false` waits for all occurrences of a workflow across all branches to finish. Co-authored-by: Matthew Rogers <matt.rogers@snyk.io> Co-authored-by: Matt Rogers <matt.rogers@snyk.io>
- Loading branch information
Showing
5 changed files
with
70 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:10 | ||
working_directory: ~/repo | ||
steps: | ||
- queue/until_front_of_line: | ||
# only on workflow | ||
consider-branch: false | ||
block-workflow: true | ||
only-on-workflow: "build-deploy" | ||
time: "1" |
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