Skip to content

Commit 47bc385

Browse files
committed
Try inlining published condition
1 parent 8a80894 commit 47bc385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
180180
- name: Generate artifact attestation
181181
uses: actions/[email protected]
182-
if: env.is_published_build
182+
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging') }}
183183
with:
184184
subject-name: ${{ env.container_registry }}/${{ env.docker_image_name}}
185185
subject-digest: ${{ steps.push.outputs.digest }}

0 commit comments

Comments
 (0)