Skip to content

Commit

Permalink
test multi-line strs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmrdavid authored Apr 11, 2024
1 parent 9e7b7db commit 81f1739
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/guarantee-version-correctness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,19 @@ 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
$projPatch = $env:PROJ_PATCH
# 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 `<PatchVersion>` element in the csproj ($projPatch) is less than `<PatchVersion>` 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)."
}

0 comments on commit 81f1739

Please sign in to comment.