Skip to content

Commit 4dac9d0

Browse files
committed
fix
1 parent 767a2cb commit 4dac9d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/pipelines/process/conditions.md

+1
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ The following examples show `condition` settings to produce various outcomes.
216216
> `Release.Artifacts.{artifact-alias}.SourceBranch` is equivalent to `Build.SourceBranch`.
217217

218218
| Desired outcome | Condition setting |
219+
| --------------- | ----------------- |
219220
| Run if the source branch is main, even if the parent or preceding stage, job, or step failed or was canceled.| `eq(variables['Build.SourceBranch'], 'refs/heads/main')` |
220221
| Run if the source branch is main and the parent or preceding stage, job, or step succeeded. | `and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) |
221222
| Run if the source branch isn't main, and the parent or preceding stage, job, or step succeeded. | `and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/main')) |

0 commit comments

Comments
 (0)