From daa46ba9a5a9879fe5989f01cdf81798f9e844a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20Yaz=C4=B1c=C4=B1?= Date: Fri, 15 Sep 2023 16:36:57 +0200 Subject: [PATCH] Fix checksum files in CI release scripts --- .github/workflows/deploy-release-reusable.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-release-reusable.yaml b/.github/workflows/deploy-release-reusable.yaml index 0647697b..e2f37b4f 100644 --- a/.github/workflows/deploy-release-reusable.yaml +++ b/.github/workflows/deploy-release-reusable.yaml @@ -163,7 +163,9 @@ jobs: for DIST_FILEPATH in "$DIST_FILEPATH_SRC" "$DIST_FILEPATH_BIN"; do if [ -f "$DIST_FILEPATH" ]; then gpg --armor --detach-sign --yes --pinentry-mode error "$DIST_FILEPATH" - sha512sum "$DIST_FILEPATH" > "$DIST_FILEPATH.sha512" + sha512sum "$DIST_FILEPATH" \ + | ( read CHECKSUM FILEPATH; echo $CHECKSUM $(basename "$FILEPATH") ) \ + > "$DIST_FILEPATH.sha512" fi done