Skip to content

Commit 2147e02

Browse files
authored
[repo] Automate PackageValidationBaselineVersion update after stable releases (open-telemetry#1803)
1 parent ef8e4e9 commit 2147e02

24 files changed

+121
-52
lines changed

.github/workflows/Component.Package.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ on:
66
project-name:
77
required: true
88
type: string
9-
release-name:
10-
required: false
11-
type: string
12-
default: ''
139

1410
jobs:
1511
build-test-pack:
1612
permissions:
1713
contents: write
14+
pull-requests: write
1815

1916
runs-on: windows-latest
2017

@@ -60,3 +57,15 @@ jobs:
6057
-tag '${{ github.ref_name }}'
6158
env:
6259
GH_TOKEN: ${{ github.token }}
60+
61+
- name: Create GitHub Pull Request to update PackageValidationBaselineVersion in projects
62+
if: |
63+
!contains(github.ref_name, '-alpha') && !contains(github.ref_name, '-beta') && !contains(github.ref_name, '-rc')
64+
shell: pwsh
65+
run: |
66+
Import-Module .\build\scripts\post-release.psm1
67+
68+
CreatePackageValidationBaselineVersionUpdatePullRequest `
69+
-tag '${{ github.ref_name }}'
70+
env:
71+
GH_TOKEN: ${{ github.token }}

.github/workflows/package-Exporter.Geneva.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
jobs:
1515
call-build-test-pack:
16-
permissions:
17-
contents: write
1816
uses: ./.github/workflows/Component.Package.yml
1917
with:
2018
project-name: OpenTelemetry.Exporter.Geneva

.github/workflows/package-Exporter.OneCollector.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
jobs:
1515
call-build-test-pack:
16-
permissions:
17-
contents: write
1816
uses: ./.github/workflows/Component.Package.yml
1917
with:
2018
project-name: OpenTelemetry.Exporter.OneCollector

.github/workflows/package-Extensions.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
jobs:
1515
call-build-test-pack:
16-
permissions:
17-
contents: write
1816
uses: ./.github/workflows/Component.Package.yml
1917
with:
2018
project-name: OpenTelemetry.Extensions

.github/workflows/package-Instrumentation.AspNet.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ on:
1515

1616
jobs:
1717
call-build-test-pack:
18-
permissions:
19-
contents: write
2018
uses: ./.github/workflows/Component.Package.yml
2119
with:
2220
project-name: OpenTelemetry.Instrumentation.AspNet
23-
release-name: 'OpenTelemetry Asp.Net Instrumentation Packages'
2421
secrets: inherit

.github/workflows/package-Instrumentation.AspNetCore.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
jobs:
1515
call-build-test-pack:
16-
permissions:
17-
contents: write
1816
uses: ./.github/workflows/Component.Package.yml
1917
with:
2018
project-name: OpenTelemetry.Instrumentation.AspNetCore

.github/workflows/package-Instrumentation.EventCounters.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
jobs:
1515
call-build-test-pack:
16-
permissions:
17-
contents: write
1816
uses: ./.github/workflows/Component.Package.yml
1917
with:
2018
project-name: OpenTelemetry.Instrumentation.EventCounters

.github/workflows/package-Instrumentation.GrpcNetClient.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
jobs:
1515
call-build-test-pack:
16-
permissions:
17-
contents: write
1816
uses: ./.github/workflows/Component.Package.yml
1917
with:
2018
project-name: OpenTelemetry.Instrumentation.GrpcNetClient

.github/workflows/package-Instrumentation.Http.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
jobs:
1515
call-build-test-pack:
16-
permissions:
17-
contents: write
1816
uses: ./.github/workflows/Component.Package.yml
1917
with:
2018
project-name: OpenTelemetry.Instrumentation.Http

.github/workflows/package-Instrumentation.Owin.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313

1414
jobs:
1515
call-build-test-pack:
16-
permissions:
17-
contents: write
1816
uses: ./.github/workflows/Component.Package.yml
1917
with:
2018
project-name: OpenTelemetry.Instrumentation.Owin

0 commit comments

Comments
 (0)