From d7f69be7418cb89282e103de85667321008973fc Mon Sep 17 00:00:00 2001 From: VariantXYZ Date: Sat, 10 Aug 2024 00:02:01 -0700 Subject: [PATCH] Don't create patches unless the actual sha1sum changes --- .github/workflows/nightly_update.yml | 6 ++++-- medarot3.sha1sum | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 medarot3.sha1sum diff --git a/.github/workflows/nightly_update.yml b/.github/workflows/nightly_update.yml index 92a8efe9..8c2b5741 100644 --- a/.github/workflows/nightly_update.yml +++ b/.github/workflows/nightly_update.yml @@ -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/ diff --git a/medarot3.sha1sum b/medarot3.sha1sum new file mode 100644 index 00000000..3bb1d514 --- /dev/null +++ b/medarot3.sha1sum @@ -0,0 +1,2 @@ +f965c03b76b610f52596f0abd7c0414bb455cc1e medarot3_kabuto.gbc +299b5f93986b4dd070c25aa91790491fd5b9d413 medarot3_kuwagata.gbc