Skip to content

Commit c1fe54f

Browse files
committed
add more info to build error logs
1 parent 51e9cf4 commit c1fe54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-smapi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
$patch = $Matches[3]
5858
}
5959
else {
60-
Write-Error 'Input semver did not match the strict x.y.z format. Aborting.'
60+
Write-Error "The version '$version' found in build/common.targets did not match the strict x.y.z format. Aborting."
6161
Write-Host 'Debug info:'
6262
Write-Host "Extracted version: $version"
6363
exit 1
@@ -76,7 +76,7 @@ jobs:
7676
shell: pwsh
7777
run: |
7878
if ($env:VERSION -ne '${{github.ref_name}}') {
79-
Write-Error 'The pushed tag doesn't match the version we have in build/common.targets. Aborting.'
79+
Write-Error "The pushed tag '${{github.ref_name}}' doesn't match the version '$env:VERSION' found in build/common.targets. Aborting."
8080
Write-Host 'Debug info:'
8181
Write-Host 'Tag: ${{github.ref_name}}'
8282
Write-Host "In common.targets: $env:VERSION"

0 commit comments

Comments
 (0)