From 3a83203298b7cbacc2e4437b4c169ee20a28806c Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Mon, 10 Jun 2024 23:52:52 -0500 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1bb14749..186ca4d1 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