File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 6
6
- v1
7
7
workflow_dispatch :
8
8
9
-
10
9
jobs :
11
10
release :
12
11
name : Release
@@ -42,17 +41,13 @@ jobs:
42
41
release-type : terraform-module
43
42
token : ${{ steps.token.outputs.token }}
44
43
- name : Attest
44
+ if : ${{ steps.release.outputs.releases_created == 'true' }}
45
45
id : attest
46
46
uses : actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
47
47
with :
48
48
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 }}"
54
49
- name : Update release notes with attestation
55
- if : github.event_name == 'workflow_dispatch'
50
+ if : ${{ steps.release.outputs.releases_created == 'true' }}
56
51
run : |
57
52
gh release view ${{ github.event.inputs.version }} --json body -q '.body' > new-release-notes.md
58
53
echo "## Attestation" >> new-release-notes.md
You can’t perform that action at this time.
0 commit comments