Skip to content

Commit

Permalink
add extra checks
Browse files Browse the repository at this point in the history
  • Loading branch information
FonduemangVI committed Jul 3, 2024
1 parent bdc9225 commit ddff524
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 46 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/changelog-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,24 @@ jobs:

# Change the update file
- name: Append changelog to file
id: check_append
run: |
echo "Prepending changelog to file with date and time"
echo "Checking and appending changelog to file if new"
changelog_content="${{ steps.build_changelog.outputs.changelog }}"
current_date=$(date -u +"%Y-%m-%d %H:%M:%S")
echo -e "\n# $current_date\n$changelog_content\n" | cat - docs/updates.txt > temp && mv temp docs/updates.txt
new_entry="# $current_date\n$changelog_content"
# Check if the new changelog content already exists in the file
if ! grep -Fxq "$changelog_content" docs/updates.txt; then
echo "$new_entry" | cat - docs/updates.txt > temp && 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
fi
- name: Commit changes
if: env.new_changes == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
Expand Down
44 changes: 0 additions & 44 deletions docs/updates.txt
Original file line number Diff line number Diff line change
@@ -1,47 +1,3 @@

# 2024-07-03 06:07:28
### 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-07-03 06:06:38
### 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 ddff524

Please sign in to comment.