Skip to content

Commit 29d9e2a

Browse files
authored
fix: t attestation for release artifacts (#7)
* chore: add attestations * chore: add attestations * fix(ci): at attestation for release artifacts
1 parent d20ac11 commit 29d9e2a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- v1
77
workflow_dispatch:
88

9-
109
jobs:
1110
release:
1211
name: Release
@@ -42,17 +41,13 @@ jobs:
4241
release-type: terraform-module
4342
token: ${{ steps.token.outputs.token }}
4443
- name: Attest
44+
if: ${{ steps.release.outputs.releases_created == 'true' }}
4545
id: attest
4646
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
4747
with:
4848
subject-path: '${{ github.workspace }}/lambdas/functions/**/*.zip'
49-
- name: ouptut attestation
50-
run: |
51-
echo "Attestation bundle: ${{ steps.attest.outputs.bundle-path }}"
52-
echo "Attestation id: ${{ steps.attest.outputs.attestation-id }}"
53-
echo "Attestation url: ${{ steps.attest.outputs.attestation-url }}"
5449
- name: Update release notes with attestation
55-
if: github.event_name == 'workflow_dispatch'
50+
if: ${{ steps.release.outputs.releases_created == 'true' }}
5651
run: |
5752
gh release view ${{ github.event.inputs.version }} --json body -q '.body' > new-release-notes.md
5853
echo "## Attestation" >> new-release-notes.md

0 commit comments

Comments
 (0)