Skip to content

Commit b1c9a3c

Browse files
committed
move snippet
1 parent e35bad4 commit b1c9a3c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/guides/modules/orchestrate/pages/github-trigger-event-options.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ All pipelines triggered by link:https://docs.github.com/en/webhooks/webhook-even
9797
+
9898
**Usage example**: To trigger a pipeline on _PR opened or pushed to, default branch and tag pushes_, but ensure that it never runs if the event is associated with a PR that is marked as draft, use the following filter.
9999
+
100-
** The condition `pipeline.event.github.pull_request.draft == false` excludes draft PRs from triggering the workflow.
101-
** `pipeline.event.name == "api"` ensures that the workflow runs when triggered manually via the web app or API.
102-
** `pipeline.event.name == "push"` ensures that the workflow runs when triggered via push to the default branch.
103-
+
104100
[,yaml]
105101
----
106102
workflows:
@@ -109,6 +105,11 @@ workflows:
109105
jobs:
110106
- myjob
111107
----
108+
+
109+
** The condition `pipeline.event.github.pull_request.draft == false` excludes draft PRs from triggering the workflow.
110+
** `pipeline.event.name == "api"` ensures that the workflow runs when triggered manually via the web app or API.
111+
** `pipeline.event.name == "push"` ensures that the workflow runs when triggered via push to the default branch.
112+
112113

113114
* `pipeline.event.github.pull_request.title`: the title of the pull request.
114115
* `pipeline.event.github.pull_request.number`: the numeric identifier of the pull request.

0 commit comments

Comments
 (0)