Skip to content

Commit

Permalink
Update azure-pipelines.yml to use ubuntu-20.04 (Azure#16485)
Browse files Browse the repository at this point in the history
* Update azure-pipelines.yml

* Update ShouldSendPRToMain.yml

* Update BranchProtectionForPrivateRepo.yml
  • Loading branch information
zhenglaizhang authored Oct 21, 2021
1 parent f900b57 commit e810937
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .azure-pipelines/BranchProtectionForPrivateRepo.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
jobs:
- job: "BranchProtectionForPrivateRepo"
pool:
vmImage: 'Ubuntu 16.04'
condition: and(variables['PRIVATE'], eq(variables['System.PullRequest.TargetBranch'], 'main'))
steps:
- script: '>&2 echo "the branch is protected"'
Expand Down
2 changes: 0 additions & 2 deletions .azure-pipelines/ShouldSendPRToMain.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
jobs:
- job: "ShouldSendPRToMain"
pool:
vmImage: 'Ubuntu 16.04'
condition: eq(variables['System.PullRequest.TargetBranch'], 'master')
steps:
- script: '>&2 echo "##vso[task.logissue type=error]Please edit the pull request to targeting new default branch main"'
Expand Down
5 changes: 4 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Azure OpenAPI"

pool:
vmImage: 'Ubuntu-20.04'

trigger:
branches:
include:
Expand All @@ -19,4 +22,4 @@ variables:

jobs:
- template: .azure-pipelines/BranchProtectionForPrivateRepo.yml
- template: .azure-pipelines/ShouldSendPRToMain.yml
- template: .azure-pipelines/ShouldSendPRToMain.yml

0 comments on commit e810937

Please sign in to comment.