From 578c36b6d51eb03217f800e4990ada5f55fd1a5a Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 16 Jun 2024 21:42:16 +0200 Subject: [PATCH] update workflow --- .github/workflows/prerelease-on-merge-to-main.yml | 4 ++-- src/BuildVersionNumber.ps1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prerelease-on-merge-to-main.yml b/.github/workflows/prerelease-on-merge-to-main.yml index 97c93f7d2..e412acbf3 100644 --- a/.github/workflows/prerelease-on-merge-to-main.yml +++ b/.github/workflows/prerelease-on-merge-to-main.yml @@ -184,8 +184,8 @@ jobs: run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - git tag v${{ steps.generate_version_number.outputs.version }} - git push origin v${{ steps.generate_version_number.outputs.version }} + git tag ${{ steps.generate_version_number.outputs.version }} + git push origin ${{ steps.generate_version_number.outputs.version }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/BuildVersionNumber.ps1 b/src/BuildVersionNumber.ps1 index 2e0cac963..627da6330 100644 --- a/src/BuildVersionNumber.ps1 +++ b/src/BuildVersionNumber.ps1 @@ -57,7 +57,7 @@ function GetVersion { } # Construct the semantic version. - $semanticVersion = "$versionCore.$buildNumber-$aasmodel-$suffix-$buildSuffix" + $semanticVersion = "v$versionCore.$buildNumber-$aasmodel-$suffix-$buildSuffix" return $semanticVersion }