Skip to content

Complete release

Complete release #1

Workflow file for this run

name: Complete release
on:
workflow_dispatch:
inputs:
tag:
required: true
description: 'Release tag'
type: string
release:
types: [published]
workflow_call:
inputs:
tag:
required: true
type: string
permissions:
contents: write
pull-requests: write
jobs:
complete-release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Create GitHub Pull Request to update stable build version in props
if: |
(github.ref_type == 'tag' && startsWith(github.ref_name, 'core-') && !contains(github.ref_name, '-alpha') && !contains(github.ref_name, '-beta') && !contains(github.ref_name, '-rc'))
|| (inputs.tag && startsWith(inputs.tag, 'core-') && !contains(inputs.tag, '-alpha') && !contains(inputs.tag, '-beta') && !contains(inputs.tag, '-rc'))
shell: pwsh
run: |
Import-Module .\build\scripts\post-release.psm1
CreateStableVersionUpdatePullRequest `
-tag '${{ inputs.tag || github.ref_name }}'
env:
GH_TOKEN: ${{ github.token }}
- name: Invoke core version update workflow in opentelemetry-dotnet-contrib repository
shell: pwsh
env:
CONTRIB_REPO_GH_TOKEN_EXISTS: ${{ secrets.CONTRIB_REPO_GH_TOKEN != '' }}
GH_TOKEN: ${{ secrets.CONTRIB_REPO_GH_TOKEN }}
if: vars.CONTRIB_REPO && CONTRIB_REPO_GH_TOKEN_EXISTS

Check failure on line 49 in .github/workflows/post-release.yml

View workflow run for this annotation

GitHub Actions / Complete release

Invalid workflow file

The workflow is not valid. .github/workflows/post-release.yml (Line: 49, Col: 11): Unrecognized named-value: 'CONTRIB_REPO_GH_TOKEN_EXISTS'. Located at position 22 within expression: vars.CONTRIB_REPO && CONTRIB_REPO_GH_TOKEN_EXISTS
run : |
Import-Module .\build\scripts\post-release.psm1
InvokeCoreVersionUpdateWorkflowInRemoteRepository `
-repository '${{ vars.CONTRIB_REPO }}'
-tag '${{ inputs.tag || github.ref_name }}'