-
Notifications
You must be signed in to change notification settings - Fork 293
45 lines (35 loc) · 1.22 KB
/
core-version-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Core version update
on:
workflow_dispatch:
inputs:
tag:
required: true
description: 'Release tag'
type: string
jobs:
automation:
uses: ./.github/workflows/automation.yml
secrets: inherit
core-version-update:
runs-on: ubuntu-22.04
needs: automation
if: needs.automation.outputs.enabled
env:
GH_TOKEN: ${{ secrets[needs.automation.outputs.token-secret-name] }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
token: ${{ secrets[needs.automation.outputs.token-secret-name] }}
- name: Setup dotnet
uses: actions/setup-dotnet@v4
- name: Create GitHub Pull Request to update core version in props and update CHANGELOGs in projects
shell: pwsh
run: |
Import-Module .\build\scripts\post-release.psm1
CreateOpenTelemetryCoreLatestVersionUpdatePullRequest `
-gitRepository '${{ github.repository }}' `
-tag '${{ inputs.tag }}' `
-targetBranch '${{ github.event.repository.default_branch }}' `
-gitUserName '${{ needs.automation.outputs.username }}' `
-gitUserEmail '${{ needs.automation.outputs.email }}'