Skip to content

Commit 68dffd8

Browse files
committed
Print which value is missing.
1 parent 57e304e commit 68dffd8

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

actions/code-signing/action.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,23 @@ runs:
1818
id: should_sign
1919
shell: pwsh
2020
run: |
21-
$shouldSign = $false
22-
if ("${{inputs.client-id}}" -ne "" -and "${{inputs.tenant-id}}" -ne "" -and "${{inputs.subscription-id}}" -ne "") {
23-
$shouldSign = $true
21+
$shouldSign = $true
22+
23+
if ("${{inputs.client-id}}" -eq "") {
24+
echo "Missing required value: client-id"
25+
$shouldSign = $false
26+
}
27+
28+
if ("${{inputs.tenant-id}}" -eq "") {
29+
echo "Missing required value: tenant-id"
30+
$shouldSign = $false
2431
}
32+
33+
if ("${{inputs.subscription-id}}" -eq "") {
34+
echo "Missing required value: subscription-id"
35+
$shouldSign = $false
36+
}
37+
2538
echo "should_sign=$shouldSign" >> $env:GITHUB_OUTPUT
2639
echo "Should sign: $shouldSign"
2740

0 commit comments

Comments
 (0)