Skip to content

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
FonduemangVI committed Jul 3, 2024
1 parent 6dd3e4d commit b3ed087
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/changelog-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,21 @@ jobs:
EOF
)
# Generate hash of the new changelog content
new_entry_hash=$(echo "$new_entry" | sha256sum)
# Append the new entry to a temporary file
echo "$new_entry" | cat - docs/updates.txt > temp
# Generate hash of the existing file content
file_hash=$(cat docs/updates.txt | sha256sum)
# 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 }')
# Compare the hashes and append if they are different
if [ "$new_entry_hash" != "$file_hash" ]; then
echo "$new_entry" | cat - docs/updates.txt > temp && mv temp docs/updates.txt
# Compare the hashes and move the temporary file if they are different
if [ "$original_hash" != "$new_file_hash" ]; then
mv temp docs/updates.txt
echo "new_changes=true" >> $GITHUB_ENV
else
echo "No new changelog content to append."
echo "new_changes=false" >> $GITHUB_ENV
rm temp
fi
- name: Commit changes
Expand Down
19 changes: 0 additions & 19 deletions docs/updates.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
# 2024-07-03 06:23:45
### Radarr - Updates

- [Update to match main guide repo](https://github.com/FonduemangVI/Guides/pull/7)

### Sonarr - Updates

- [Update to match main guide repo](https://github.com/FonduemangVI/Guides/pull/7)

### Others

- [test](https://github.com/FonduemangVI/Guides/pull/6)
- [testing](https://github.com/FonduemangVI/Guides/pull/4)
- [testing](https://github.com/FonduemangVI/Guides/pull/5)


- [test](https://github.com/FonduemangVI/Guides/pull/6)
- [testing](https://github.com/FonduemangVI/Guides/pull/4)
- [testing](https://github.com/FonduemangVI/Guides/pull/5)
# 2024-06-15 22:00
- [feat(guides): Add hallowed to (U)HD Bluray Tier 03 and create new hallowed Radarr custom format (#1978)](https://github.com/TRaSH-Guides/Guides/pull/1978)

Expand Down

0 comments on commit b3ed087

Please sign in to comment.