From 8efdb3fc9aa87cc2bbbd1a19ae4f58d4f85c7943 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 5 Feb 2024 22:35:13 +0100 Subject: [PATCH] again the file shitttt --- .github/workflows/msbuild.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 09105e1..a4a0d1e 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -55,15 +55,19 @@ jobs: id: hashes run: | cd x64/Release - hash_array="" for file in *; do file_name=$(basename "$file") hash_value=$(sha256sum "$file" | cut -d' ' -f1) - hash_array="${hash_array}${file_name}: ${hash_value}"$'\n' + echo "${file_name}: ${hash_value}" >> hashes.txt done - echo "::set-output name=hashes::${hash_array}" + echo "::set-output name=hash_file::hashes.txt" + + - name: Read Hashes from File + id: read_hashes + run: | + hashes=$(cat ${{ steps.hashes.outputs.hash_file }}) + echo "::set-output name=hashes::${hashes}" - - name: Create Release id: create_release uses: softprops/action-gh-release@v1 @@ -73,7 +77,7 @@ jobs: body: | **File Hashes:** ``` - ${{ steps.hashes.outputs.hashes }} + ${{ steps.read_hashes.outputs.hashes }} ``` files: | x64/Release/*