Skip to content

Commit

Permalink
ci: renames master to main
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Dec 24, 2024
1 parent 7ae9446 commit 0e354cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
trigger:
branches:
include:
- master
- main
pr:
branches:
include:
- master
- main

variables:
buildPlatform: 'Any CPU'
Expand Down Expand Up @@ -145,7 +145,7 @@ extends:

- task: PowerShell@2
displayName: 'Validate project version has been incremented'
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/master'), succeeded())
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/main'), succeeded())
inputs:
targetType: 'filePath'
filePath: $(System.DefaultWorkingDirectory)\scripts\ValidateProjectVersionUpdated.ps1
Expand Down Expand Up @@ -186,7 +186,7 @@ extends:
PendingAnalysisWaitTimeoutMinutes: '5'

- stage: deploy
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/master'), succeeded())
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/main'), succeeded())
dependsOn: build
jobs:
- deployment: deploy
Expand Down
4 changes: 2 additions & 2 deletions .github/policies/OpenAPI.NET.OData-branch-protection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ resource: repository
configuration:
branchProtectionRules:

- branchNamePattern: master
- branchNamePattern: main
# This branch pattern applies to the following branches as of 06/09/2024 20:45:44:
# master
# main

# Specifies whether this branch can be deleted. boolean
allowsDeletions: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ main ]
schedule:
- cron: '32 2 * * 6'
workflow_dispatch:
Expand Down

0 comments on commit 0e354cb

Please sign in to comment.