diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1bb14749da..186ca4d143 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,6 +9,8 @@ on: jobs: build-runspace: runs-on: windows-latest + outputs: + version: ${{ steps.extract_version.outputs.version }} steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -21,6 +23,7 @@ jobs: if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') { $version = $matches[1] echo "version=$version" >> $GITHUB_ENV + echo "::set-output name=version::$version" break } } @@ -28,7 +31,7 @@ jobs: Write-Error "Version not found in winutil.ps1" exit 1 } - shell: pwsh + shell: pwsh - name: Create and Upload Release id: create_release