From 81f17390cd28fc84a8588533b4487f0d3e157540 Mon Sep 17 00:00:00 2001 From: David Justo Date: Wed, 10 Apr 2024 21:49:14 -0700 Subject: [PATCH] test multi-line strs --- .github/workflows/guarantee-version-correctness.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/guarantee-version-correctness.yml b/.github/workflows/guarantee-version-correctness.yml index 6e861b453..d36e8995f 100644 --- a/.github/workflows/guarantee-version-correctness.yml +++ b/.github/workflows/guarantee-version-correctness.yml @@ -67,7 +67,7 @@ jobs: } - name: Check minorVersion - if: ${{ contains(github.event.pull_request.labels.*.name, 'patch-pr') }} + if: ${{ !contains(github.event.pull_request.labels.*.name, 'patch-pr') }} shell: pwsh run: | $tagPatch = $env:TAG_PATCH @@ -75,8 +75,11 @@ jobs: # Compare the project version to the minimum required version if ($projPatch -lt $tagPatch) { - Write-Error "PR was labeled with the 'patch-pr' label, but the `` element in the csproj ($projPatch) is less than `` of the last release tag ($tagPatch)." + $errorMessage = "WebJobs extension version ($projectVersion) it not" + + "a patch-release greater than the latest tag version ($minVersion)." + + "Please increment the patch version or remove the `patch-pr` label." + Write-Error $errorMessage exit 1 } else { - Write-Host "WebJobs extension version ($projectVersion) meets the minimum required version ($minVersion)." + Write-Host "WebJobs extension version ($projectVersion) at least a patch-release greater than the latest tag version ($minVersion)." } \ No newline at end of file