From 0688564121f55186a571a4b92b289aa87c35c413 Mon Sep 17 00:00:00 2001 From: pomianowski Date: Mon, 2 May 2022 18:11:33 +0200 Subject: [PATCH] Skip checking prereleases [skip ci] --- .github/workflows/CI.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 96b791b5d..dd8784301 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,15 +18,6 @@ jobs: buildprops: - 'Directory.Build.props' - - name: Update version - if: steps.changes.outputs.buildprops == 'false' - run: | - (Get-Content src\Directory.Build.props) | % { - $m = [regex]::match($_, '(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?'); - if(!$m.Success -or $m.Groups[4].Success -or $m.Groups[5].Success) { $_; } - else { $_ -replace $m.Value, ("{0}.{1}.{2}-prerelease${{ github.run_number }}" -f $m.Groups[1].Value,$m.Groups[2].Value,([convert]::ToInt32($m.Groups[3].Value)+1)); } - } | Set-Content src\Directory.Build.props - - name: Publish uses: alirezanet/publish-nuget@v3.0.4 with: