From 13435066ad76fa6af319aa8dbf8ec9fbad6d0608 Mon Sep 17 00:00:00 2001 From: Hilko Bengen Date: Tue, 14 Dec 2021 13:50:34 +0100 Subject: [PATCH] Add release notes including sha256sums --- .github/workflows/go.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ebbd4c4..02bfe9e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,7 +20,9 @@ jobs: go build . GOOS=windows go build . GOOS=darwin go build -o local-log4j-vuln-scanner.macosx . - sha256sum local-log4j-vuln-scanner.exe local-log4j-vuln-scanner.macosx local-log4j-vuln-scanner + sha256sum local-log4j-vuln-scanner.exe local-log4j-vuln-scanner.macosx local-log4j-vuln-scanner \ + | awk 'BEGIN { print "# Binaries" } /^([0-9a-f]*) (.*)$/ { print "- ["$2"]("$2") sha="$1 }' \ + > relnotes.txt - name: Upload artifact uses: actions/upload-artifact@v2 @@ -31,11 +33,13 @@ jobs: local-log4j-vuln-scanner local-log4j-vuln-scanner.exe local-log4j-vuln-scanner.macosx + relnotes.txt - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: + body_path: relnotes.txt files: | local-log4j-vuln-scanner local-log4j-vuln-scanner.exe