Skip to content

Commit

Permalink
Fix new version computation
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou committed Sep 21, 2024
1 parent ee4866d commit 780afd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- id: compute-version
name: Compute version
run: |
$(Invoke-WebRequest "https://www.nuget.org/api/v2/package/Meziantou.Analyzer/").BaseResponse.RequestMessage.RequestUri -match "meziantou\.analyzer\.2\.0\.([0-9]+).nupkg$"
$(Invoke-WebRequest "https://www.nuget.org/api/v2/package/Meziantou.Analyzer/").BaseResponse.RequestMessage.RequestUri -match "meziantou\.analyzer\.2\.0\.([0-9]+).nupkg"
$NewVersion = "2.0.$([int]$Matches.1 + 1)"
if ($env:GITHUB_REF -ne 'refs/heads/main') {
$NewVersion = $NewVersion + '-build.${{ github.run_id }}'
Expand Down

0 comments on commit 780afd1

Please sign in to comment.