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

Commit

Permalink
fix double entrie and wrong name
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii committed Feb 5, 2024
1 parent b4785f9 commit d041149
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@ jobs:
- name: Generate SHA256 hashes
id: hashes
run: |
declare -A processed_files
for file in x64/Release/*; do
echo "$(basename "$file"): $(sha256sum "$file" | cut -d' ' -f1)" >> hashes.txt
file_name=$(basename "$file")
if [ -z "${processed_files[$file_name]}" ]; then
echo "$file_name: $(sha256sum "$file" | cut -d' ' -f1)" >> hashes.txt
processed_files[$file_name]="processed"
fi
done
cat hashes.txt # Debug print the content
cat hashes.txt
echo "::set-output name=hashes::$(cat hashes.txt)"
- name: Create Release
Expand All @@ -79,7 +84,7 @@ jobs:
body: |
**File Hashes:**
```
${{ steps.generate_hashes.outputs.hashes }}
${{ steps.hashes.outputs.hashes }}
```
files: x64/Release/*
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit d041149

Please sign in to comment.