Skip to content

Commit

Permalink
Wrong true/false branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jörgen Sigvardsson committed Nov 6, 2023
1 parent 7199936 commit 6ef21cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
- run: |
If (('${{ github.event_name }}' -ne 'release') -and ('1.0.0-alpha1' -match '^(?<version>\d+\.\d+\.\d+)')) {
Add-Content -Path $Env:GITHUB_ENV -Value "VERSION=0.0.0"
Add-Content -Path $Env:GITHUB_ENV -Value "FILE_VERSION=0.0.0"
Add-Content -Path $Env:GITHUB_ENV -Value "INFORMAL_VERSION=UNRELEASED"
} else {
If (('${{ github.event_name }}' -ne 'release') -and ('1.0.0-alpha1' -match '^(?<version>\d+\.\d+\.\d+)')) {
Add-Content -Path $Env:GITHUB_ENV -Value "VERSION=$($Matches.version)"
Add-Content -Path $Env:GITHUB_ENV -Value "FILE_VERSION=$($Matches.version).0"
Add-Content -Path $Env:GITHUB_ENV -Value "INFORMAL_VERSION=${{ github.ref_name }}"
} else {
Add-Content -Path $Env:GITHUB_ENV -Value "VERSION=0.0.0"
Add-Content -Path $Env:GITHUB_ENV -Value "FILE_VERSION=0.0.0.0"
Add-Content -Path $Env:GITHUB_ENV -Value "INFORMAL_VERSION=UNRELEASED"
}
name: "Set package version meta data"
- run: |
Expand Down

0 comments on commit 6ef21cf

Please sign in to comment.