Skip to content

Commit

Permalink
Support both master and main in Python (#18074)
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored Apr 16, 2021
1 parent ebb02e3 commit 46b402f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions eng/pipelines/aggregate-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pr:
branches:
include:
- master
- main
paths:
include:
- eng/pipelines/aggregate-reports.yml
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/autorest_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pr:
branches:
include:
- master
- main
- feature/*
- hotfix/*
- release/*
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/jobs/tests-nightly-python.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
trigger:
- master
- main

jobs:

Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/jobs/update_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

trigger:
- master
- main

variables:
skipComponentGovernanceDetection: true
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/steps/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ steps:
PackageName: "azure-template"
ServiceDirectory: "template"
TestPipeline: ${{ parameters.TestPipeline }}

- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
- script: |
echo "##vso[build.addbuildtag]Scheduled"
displayName: 'Tag scheduled builds'
condition: and(eq(variables['Build.SourceBranchName'],'master'),eq(variables['Build.Reason'],'Schedule'))
condition: and(eq(variables['Build.SourceBranchName'], variables['DefaultBranch']), eq(variables['Build.Reason'],'Schedule'))
- task: UsePythonVersion@0
displayName: 'Use Python 2.7'
Expand Down

0 comments on commit 46b402f

Please sign in to comment.