Skip to content

Commit 9328fd4

Browse files
committed
update shouldPushImage logic
1 parent e5b229a commit 9328fd4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-nabla.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@ jobs:
5959
$nscTargetTaggedImage = "ghcr.io/${repo}:${tag}".ToLower()
6060
$nscTargetTaggedImageLatest = "ghcr.io/${repo}:nsc-godbolt-latest".ToLower()
6161
62-
$shouldPushImage = ("${{ github.ref }}" -eq "refs/heads/master" -and "${{ matrix.vendor }}" -eq "msvc")
62+
$shouldPushImage = (
63+
"${{ github.ref }}" -eq "refs/heads/master" -and
64+
"${{ matrix.vendor }}" -eq "msvc" -and
65+
"${{ matrix.config }}" -eq "Release"
66+
)
6367
68+
Write-Host "::notice::Should push image? $shouldPushImage"
69+
6470
"prefix=$prefix" >> $env:GITHUB_OUTPUT
6571
"nscTargetTaggedImage=$nscTargetTaggedImage" >> $env:GITHUB_OUTPUT
6672
"nscTargetTaggedImageLatest=$nscTargetTaggedImageLatest" >> $env:GITHUB_OUTPUT

0 commit comments

Comments
 (0)