Skip to content

Commit 78cf794

Browse files
authored
Merge pull request #2001 from microsoft/ci/align-branches
ci/align branches
2 parents fbe390b + c805f2e commit 78cf794

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
55
trigger:
66
branches:
77
include:
8-
- master
9-
- vnext
8+
- main
9+
- dev
10+
- support/v1
1011
pr:
1112
branches:
1213
include:
13-
- master
14-
- vnext
14+
- main
15+
- dev
16+
- support/v1
1517
variables:
1618
buildPlatform: 'Any CPU'
1719
buildConfiguration: 'Release'
@@ -206,7 +208,7 @@ extends:
206208
content: '*.nupkg'
207209

208210
- stage: deploy
209-
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/master'), succeeded())
211+
condition: and(or(contains(variables['build.sourceBranch'], 'refs/heads/main'),contains(variables['build.sourceBranch'], 'refs/heads/support/v1')), succeeded())
210212
dependsOn: build
211213
jobs:
212214
- deployment: deploy_hidi

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CodeQL Analysis
22

33
on:
44
push:
5-
branches: [ vnext ]
5+
branches: [ main, dev ]
66
pull_request:
77
schedule:
88
- cron: '0 8 * * *'

.github/workflows/docker.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Docker image
22
on:
33
workflow_dispatch:
44
push:
5-
branches: [master, vnext]
5+
branches: [main, dev, support/v1]
66
paths: ['src/Microsoft.OpenApi.Hidi/**', '.github/workflows/**']
77
env:
88
REGISTRY: msgraphprod.azurecr.io
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Check out the repo
1818
uses: actions/checkout@v4
19-
- name: Login to GitHub package feed
19+
- name: Login to registry
2020
uses: docker/[email protected]
2121
with:
2222
username: ${{ secrets.ACR_USERNAME }}
@@ -28,14 +28,14 @@ jobs:
2828
echo "::set-output name=version::${version}"
2929
shell: pwsh
3030
id: getversion
31-
- name: Push to GitHub Packages - Nightly
32-
if: ${{ github.ref == 'refs/heads/vnext' }}
31+
- name: Push to registry - Nightly
32+
if: ${{ github.ref == 'refs/heads/dev' }}
3333
uses: docker/[email protected]
3434
with:
3535
push: true
3636
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly
37-
- name: Push to GitHub Packages - Release
38-
if: ${{ github.ref == 'refs/heads/master' }}
37+
- name: Push to registry - Release
38+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/support/v1' }}
3939
uses: docker/[email protected]
4040
with:
4141
push: true

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ VOLUME /app/collection.json
1919
ENV HIDI_CONTAINER=true DOTNET_TieredPGO=1 DOTNET_TC_QuickJitForLoops=1
2020
ENTRYPOINT ["dotnet", "Microsoft.OpenApi.Hidi.dll"]
2121
LABEL description="# Welcome to Hidi \
22-
To start transforming OpenAPI documents checkout [the getting started documentation](https://github.com/microsoft/OpenAPI.NET/tree/vnext/src/Microsoft.OpenApi.Hidi) \
23-
[Source dockerfile](https://github.com/microsoft/OpenAPI.NET/blob/vnext/Dockerfile)"
22+
To start transforming OpenAPI documents checkout [the getting started documentation](https://github.com/microsoft/OpenAPI.NET/tree/main/src/Microsoft.OpenApi.Hidi) \
23+
[Source dockerfile](https://github.com/microsoft/OpenAPI.NET/blob/main/Dockerfile)"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var outputString = openApiDocument.Serialize(OpenApiSpecVersion.OpenApi2_0, Open
9595
In order to test the validity of an OpenApi document, we avail the following tools:
9696
- [Microsoft.OpenApi.Hidi](https://www.nuget.org/packages/Microsoft.OpenApi.Hidi)
9797

98-
A commandline tool for validating and transforming OpenAPI descriptions. [Installation guidelines and documentation](https://github.com/microsoft/OpenAPI.NET/blob/vnext/src/Microsoft.OpenApi.Hidi/readme.md)
98+
A commandline tool for validating and transforming OpenAPI descriptions. [Installation guidelines and documentation](https://github.com/microsoft/OpenAPI.NET/blob/main/src/Microsoft.OpenApi.Hidi/readme.md)
9999

100100
- Microsoft.OpenApi.Workbench
101101

0 commit comments

Comments
 (0)