Skip to content

Commit

Permalink
Don't create patches unless the actual sha1sum changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VariantXYZ committed Aug 10, 2024
1 parent ea8d97e commit d7f69be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nightly_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git commit -am "Nightly text update - `date +%Y%m%d`" || echo "No text changes"
git push
sha1sum medarot3_*.gbc > medarot3.sha1sum
git commit -am "Update sha1sum" || exit 0
mkdir patch
flips --create baserom_kabuto.gbc medarot3_kabuto.gbc ./patch/m3kabuto-$GITHUB_RUN_NUMBER-`git rev-parse HEAD`.bps
flips --create baserom_kuwagata.gbc medarot3_kuwagata.gbc ./patch/m3kuwagata-$GITHUB_RUN_NUMBER-`git rev-parse HEAD`.bps
git push
ghr -t ${{ secrets.GITHUB_TOKEN }} -b "Apply the patch for the version you want to the original ROM for that version with a BPS patcher such as https://medabots.github.io/RomPatcher.js/" -u $GITHUB_REPOSITORY_OWNER -r medarot3 -delete $NIGHTLY_TAG_NAME ./patch/
2 changes: 2 additions & 0 deletions medarot3.sha1sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
f965c03b76b610f52596f0abd7c0414bb455cc1e medarot3_kabuto.gbc
299b5f93986b4dd070c25aa91790491fd5b9d413 medarot3_kuwagata.gbc

0 comments on commit d7f69be

Please sign in to comment.