Skip to content

Commit 849418a

Browse files
Merge pull request #37 from vk-or/maintenance/add-attestation-on-release-notes
Tune new notes generation
2 parents 3e2f8b5 + 98924c8 commit 849418a

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

.github/workflows/release.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,17 @@ jobs:
7373
env:
7474
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7575
run: |
76-
gh release view "${{ github.ref_name }}" --json body -q '.body' --repo "${{ github.repository }}" > release-notes-with-attestation.md
77-
echo "" >> release-notes-with-attestation.md
78-
echo "## Attestation" >> release-notes-with-attestation.md
79-
echo "" >> release-notes-with-attestation.md
80-
echo "Built provenance attestation: [View attestation](${{ steps.attest.outputs.attestation-url }})" >> release-notes-with-attestation.md
81-
echo "" >> release-notes-with-attestation.md
82-
echo "Download the artifacts:" >> release-notes-with-attestation.md
83-
echo "\`\`\`bash" >> release-notes-with-attestation.md
84-
echo "gh release download ${{ github.ref_name }} -repo ${{ github.repository }} -p "*.zip"" >> release-notes-with-attestation.md
85-
echo "\`\`\`" >> release-notes-with-attestation.md
86-
echo "Verify the artifacts by running:" >> release-notes-with-attestation.md
87-
echo "\`\`\`bash" >> release-notes-with-attestation.md
88-
echo "gh attestation verify <artifact-file> --repo ${{ github.repository }}" >> release-notes-with-attestation.md
89-
echo "\`\`\`" >> release-notes-with-attestation.md
90-
gh release edit "${{ github.ref_name }}" --notes-file release-notes-with-attestation.md --repo "${{ github.repository }}"
76+
gh release view "${{ github.ref_name }}" --json body -q '.body' --repo "${{ github.repository }}" > notes.md
77+
cat >> notes.md <<EOF
78+
## Attestation
79+
Build provenance attestation: [View attestation](${{ steps.attest.outputs.attestation-url }})
80+
Download the artifacts:
81+
\`\`\`bash
82+
gh release download ${{ github.ref_name }} --repo ${{ github.repository }} --pattern "*.zip"
83+
\`\`\`
84+
Verify the artifacts:
85+
\`\`\`bash
86+
gh attestation verify <artifact-file> --repo ${{ github.repository }}
87+
\`\`\`
88+
EOF
89+
gh release edit "${{ github.ref_name }}" --notes-file notes.md --repo "${{ github.repository }}"

0 commit comments

Comments
 (0)