Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
FonduemangVI committed Jul 3, 2024
1 parent b3ed087 commit 3c87e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/changelog-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
echo "$new_entry" | cat - docs/updates.txt > temp
# Generate hashes of the original and new file content
original_hash=$(sha256sum docs/updates.txt | awk '{ print \$1 }')
new_file_hash=$(sha256sum temp | awk '{ print \$1 }')
original_hash=$(sha256sum docs/updates.txt | cut -d ' ' -f 1)
new_file_hash=$(sha256sum temp | cut -d ' ' -f 1)
# Compare the hashes and move the temporary file if they are different
if [ "$original_hash" != "$new_file_hash" ]; then
Expand Down

0 comments on commit 3c87e11

Please sign in to comment.