Skip to content

Commit

Permalink
Fix RELEASE_VERSION in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere committed Jan 25, 2023
1 parent 6116e16 commit 1a33391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
uses: damienaicheh/[email protected]
- name: Set release version
run: |
$RELEASE_VERSION = ""
$env:RELEASE_VERSION = ""
if ("$env:PRE_RELEASE" -eq "") {
$RELEASE_VERSION = "$env:MAJOR.$env:MINOR.$env:PATCH"
$env:RELEASE_VERSION = "$env:MAJOR.$env:MINOR.$env:PATCH"
}
else {
$RELEASE_VERSION = "$env:MAJOR.$env:MINOR.$env:PATCH-$env:PRE_RELEASE"
$env:RELEASE_VERSION = "$env:MAJOR.$env:MINOR.$env:PATCH-$env:PRE_RELEASE"
}
echo "Release version is $env:RELEASE_VERSION"
echo "RELEASE_VERSION=$env:RELEASE_VERSION" | Out-File -FilePath $env:GITHUB_ENV -Append
Expand Down

0 comments on commit 1a33391

Please sign in to comment.