Skip to content

Commit f4f2969

Browse files
committed
fix: t attestation for release artifacts (#7)
* chore: add attestations * chore: add attestations * fix(ci): at attestation for release artifacts
1 parent e0ae96a commit f4f2969

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,13 @@ jobs:
4141
release-type: terraform-module
4242
token: ${{ steps.token.outputs.token }}
4343
- name: Attest
44+
if: ${{ steps.release.outputs.releases_created == 'true' }}
4445
id: attest
4546
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
4647
with:
4748
subject-path: '${{ github.workspace }}/lambdas/functions/**/*.zip'
48-
- name: ouptut attestation
49-
run: |
50-
echo "Attestation bundle: ${{ steps.attest.outputs.bundle-path }}"
51-
echo "Attestation id: ${{ steps.attest.outputs.attestation-id }}"
52-
echo "Attestation url: ${{ steps.attest.outputs.attestation-url }}"
5349
- name: Update release notes with attestation
54-
if: github.event_name == 'workflow_dispatch'
50+
if: ${{ steps.release.outputs.releases_created == 'true' }}
5551
run: |
5652
gh release view ${{ github.event.inputs.version }} --json body -q '.body' > new-release-notes.md
5753
echo "## Attestation" >> new-release-notes.md

0 commit comments

Comments
 (0)