From 2e558a21b2f8e49ca24bb395717dc687f5cece1d Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:05:40 -0500 Subject: [PATCH] ci: Add preview version failover (#1174) --- .github/workflows/deploy-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-package.yml b/.github/workflows/deploy-package.yml index e46e03646..5cbd0641b 100644 --- a/.github/workflows/deploy-package.yml +++ b/.github/workflows/deploy-package.yml @@ -51,7 +51,7 @@ jobs: - name: Compose version id: compose run: | - COMPOSED_VERSION=${{ steps.gitversion.outputs.majorMinorPatch }}${{ inputs.preview && '-preview.' || '' }}${{ inputs.preview && steps.gitversion.outputs.preReleaseNumber || '' }} + COMPOSED_VERSION=${{ steps.gitversion.outputs.majorMinorPatch }}${{ inputs.preview && '-preview.' || '' }}${{ inputs.preview && steps.gitversion.outputs.preReleaseNumber || inputs.preview && github.run_number || '' }} echo "version=$COMPOSED_VERSION" >> "$GITHUB_OUTPUT" echo "COMPOSED_VERSION=$COMPOSED_VERSION" >> "$GITHUB_ENV"