Skip to content

Commit d3c0f50

Browse files
committed
chore: install cosign only if needed
Signed-off-by: Bence Csati <bence.csati@axoflow.com>
1 parent 3857463 commit d3c0f50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/artifacts.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494

9595
- name: Set up Cosign
9696
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
97+
if: inputs.publish
9798

9899
- name: Set image name
99100
id: image-name
@@ -275,6 +276,7 @@ jobs:
275276

276277
- name: Set up Cosign
277278
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
279+
if: inputs.publish && inputs.release
278280

279281
- name: Set chart name
280282
id: chart-name
@@ -435,6 +437,7 @@ jobs:
435437

436438
- name: Set up Cosign
437439
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
440+
if: inputs.publish && inputs.release
438441

439442
- name: Set chart name
440443
id: chart-name

0 commit comments

Comments
 (0)