Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
etrsdwf<n
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii committed Feb 5, 2024
1 parent be4ab93 commit ad8d251
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,20 @@ jobs:
- name: Generate SHA256 hashes
id: hashes
run: |
cd x64/Release
cd "${GITHUB_WORKSPACE}/x64/Release"
hash_file="${GITHUB_WORKSPACE}/hashes.txt"
for file in *; do
file_name=$(basename "$file")
hash_value=$(sha256sum "$file" | cut -d' ' -f1)
echo "${file_name}: ${hash_value}" >> hashes.txt
echo "${file_name}: ${hash_value}" >> "$hash_file"
done
cat hashes.txt
echo "::set-output name=hash_file::hashes.txt"
echo "::set-output name=hash_file::$hash_file"
- name: Read Hashes from File
id: read_hashes
run: |
cd x64/Release
hashes=$(cat ${{ steps.hashes.outputs.hash_file }})
cd "${GITHUB_WORKSPACE}/x64/Release"
hashes=$(cat "${GITHUB_WORKSPACE}/hashes.txt" 2>/dev/null || true)
echo "::set-output name=hashes::${hashes}"
- name: Create Release
Expand Down

0 comments on commit ad8d251

Please sign in to comment.