Skip to content

Instantly share code, notes, and snippets.

@Andras-Csanyi
Created August 16, 2021 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andras-Csanyi/aeb8f3f18ad03661c1d387cddedbc891 to your computer and use it in GitHub Desktop.
Save Andras-Csanyi/aeb8f3f18ad03661c1d387cddedbc891 to your computer and use it in GitHub Desktop.
stages:
- stage: Setup
- stage: Feature_branch
condition: ne(variables['System.PullRequest.SourceBranch'], '')
- stage: Main_branch
condition: and(eq(variables['System.PullRequest.SourceBranch'], ''), eq(variables['Build.SourceBranch'],'refs/heads/main'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment