1
0
Commit Graph

398 Commits

Author SHA1 Message Date
Ö. Efe D.
b3ac571e5e Enable pip caching 2025-03-11 15:59:19 +01:00
Efe
bd2728aaf7 Update version bot (#115)
This pull request includes significant changes to the
`.github/scripts/update_mod_versions.py` script and updates to several
`meta.json` files for various mods. The changes aim to improve the
version checking mechanism and handle GitHub API rate limits more
effectively.

### Improvements to version checking and API rate limit handling:

*
[`.github/scripts/update_mod_versions.py`](diffhunk://#diff-ce76f7bf74b62aaea873670c15651b4caec6662ded3cc8e597cb7e2b1eac67c7L27-R94):
Refactored `get_latest_release` and `get_latest_commit` functions into a
single `get_version_string` function to handle both release and commit
version checks. Added logic to handle GitHub API rate limits and
retries.
[[1]](diffhunk://#diff-ce76f7bf74b62aaea873670c15651b4caec6662ded3cc8e597cb7e2b1eac67c7L27-R94)
[[2]](diffhunk://#diff-ce76f7bf74b62aaea873670c15651b4caec6662ded3cc8e597cb7e2b1eac67c7L109-R146)
*
[`.github/scripts/update_mod_versions.py`](diffhunk://#diff-ce76f7bf74b62aaea873670c15651b4caec6662ded3cc8e597cb7e2b1eac67c7L109-R146):
Modified `process_mods` function to determine the version source based
on the download URL, and updated the function signature to include a
start timestamp parameter.
*
[`.github/scripts/update_mod_versions.py`](diffhunk://#diff-ce76f7bf74b62aaea873670c15651b4caec6662ded3cc8e597cb7e2b1eac67c7L166-R198):
Updated the `generate_commit_message` function to include a start
timestamp for better logging.

### Workflow and environment updates:

*
[`.github/workflows/update-mod-versions.yml`](diffhunk://#diff-08c6175ddce4a9d49c79d12925be3c4f705913aadcd437a10b8bde3bde8fe740R29-R30):
Added `GITHUB_TOKEN` environment variable to the workflow for
authenticated API requests.

### Mod version updates:

* Updated the `version` field in `meta.json` files for multiple mods to
reflect the latest commit hashes:
  * `mods/Agoraaa@FlushHotkeys/meta.json`
  * `mods/Aure@SixSuits/meta.json`
  * `mods/BataBata3@PampaPack/meta.json`
  * `mods/Betmma@BetmmaMods/meta.json`
  * `mods/Coo29@Yippie/meta.json`
  * `mods/DarkAutumn2618@PlanetNine/meta.json`
  * `mods/DigitalDetective47@CustomSuitOrder/meta.json`
  * `mods/DigitalDetective47@NextAntePreview/meta.json`
  * `mods/DigitalDetective47@StrangeLibrary/meta.json`
  * `mods/DigitalDetective47@StrangePencil/meta.json`
  * `mods/EnderGoodra@Textile/meta.json`
  * `mods/Eremel@Galdur/meta.json`
  * `mods/Eremel@Malverk/meta.json`
  * `mods/GauntletGames-2086@D6Jokers/meta.json`
  * `mods/GitNether@Paperback/meta.json`
  * `mods/HuyTheKiller@SauKhongHuDecks/meta.json`
  * `mods/HuyTheKiller@VietnameseBalatro/meta.json`
  * `mods/InertSteak@Pokermon/meta.json`
2025-03-11 15:43:53 +01:00
Version Update Bot
3a1a81b9e0 Auto-update mod versions (2025-03-11 14:38:03)
Updated mods:
- Betmma Mods: v3.0.1 → 472b774 (commit)
- Malverk: V1.1.3 → fc8316d (commit)
- SauKhongHuDecks: v1.2.0 → f0bb159 (commit)
- Lobotomy Corporation: 1.0.3b → caf4ad0 (commit)
- Pokermon: 2.7.0a → 7599ce1 (commit)
- Yippie: v0.0.6 → 87e403f (commit)
- Maximus: v0.5.0-beta → 47705f8 (commit)
- Bad Apple: 0.1.0 → ee0d3c2 (commit)
- Ink And Color Suits: Berry → 849a291 (commit)
- Hand Preview: v1.0.0 → 2a6f46e (commit)
- Deluxe Consumables: v1.0.1 → 7c5c1df (commit)
- Galdur: v1.2 → 747c5ce (commit)
- Better Mouse and Gamepad: v1.0.6c → 308c8e9 (commit)
- JokerDisplay: v1.8.2.3 → 305b3e2 (commit)
- KCVanilla: 2.4.1 → ed4078c (commit)
- SDM_0's Stuff: 1.6.4 → f5ce9c4 (commit)
- Custom Suit Order: v1.0.2 → 0b2f126 (commit)
- LushMod: v0.3.0 → 18e7554 (commit)
- Paperback: v0.6.2 → bc27711 (commit)
- Next Ante Preview: v1.1.3a → e477615 (commit)
- Six Suits: v1.2.1 → d2044ee (commit)
- Blueprint: v.3.2 → 5bc1ed1 (commit)
- Textile: v1.0.1 → b5d0eb9 (commit)
- Steamodded: 1.0.0-beta-0305c → 709a6d4 (commit)
- Snows Mods: DicedV0.2.1 → 4174bed (commit)
- Pampa Joker Pack: a → 91c0618 (commit)
- Binding of Isaac Tarot: 1.0 → ecbff66 (commit)
- Buffoonery: v1.1.7 → e7278d0 (commit)
- Cryptid: v0.5.5 → 44b6bd3 (commit)
- Vietnamese Balatro: v1.3.0 → b658a0c (commit)
- JoyousSpring: v0.6.5.3 → ac45ce3 (commit)
- CardSleeves: v1.6.9 → 37cf745 (commit)
- HandsomeDevils: v.1.1 → 7d838a5 (commit)
- Plantain: v1.0.2 → b31199b (commit)
- Strange Library: v2.1.1 → 0093072 (commit)
- Flush Hotkeys: 1.0.4b → 076d296 (commit)
- Riff-Raffling: mod2 → 597baf7 (commit)
- NeatoJokers: 1.1.0 → 553e9e4 (commit)
- Flower Pot: v0.7.25 → 80ab982 (commit)
- Familiar: Familiar_Release → 19bfbab (commit)
- Revo's Vault: 3.8.5a → 0f67310 (commit)
- Colored Suit Tarots: v4.1.1 → 5cd04f6 (commit)
- Balatro Draft: v0.5.2 → d4fbaeb (commit)
- Trance: v1.0.0 → fb86ebd (commit)
- Tetrapak: 1.0.3 → 6950664 (commit)
- Planet Nine: v2.0.0 → f551f58 (commit)
- Strange Pencil: v0.2.1 → 3caa32b (commit)
- HandyBalatro: v1.3.2a → 47e318e (commit)
- D6 Jokers: v0.7.22-DEMO → ac2a2ae (commit)
2025-03-11 14:38:03 +00:00
Ö. Efe D.
114829e00b Add fi 2025-03-11 15:37:05 +01:00
Ö. Efe D.
9296980a33 add github token env variable 2025-03-11 15:33:45 +01:00
Ö. Efe D.
24301689d6 Fix workflow file 2025-03-11 15:23:58 +01:00
Ö. Efe D.
14afeab1e8 Explicitly define github token env variable 2025-03-11 15:17:15 +01:00
Efe
cddf37d638 Improvements to Version Update Bot (#113)
Currently, the mod index will prioritise using the name of the tag from
the latest release version, regardless of the download source provided
by the mod. This is problematic for mods using a link to HEAD
(`archive/refs/heads/<main>.zip`) as their `downloadURL` but that also
have previously created a Release. This PR instead checks if the mod
links to HEAD, and uses the corresponding version.
Also included are improvements to error logging and wait time checks
when the GitHub REST API rate limits are hit, which appears to be
happening with inconsistent frequency. Hopefully these improvements will
help to narrow down the cause of the rate limit problems.

- Check if download url links to latest head, and if so, use version of
latest commit hash instead of release version
- Merge `get_latest_release` and `get_latest_commit` into
`get_version_string` for less duplicate code
- Check and print GitHub API rate limit details given by REST response
including api resource, remaining calls, and reset time
- On exceeding rate limit or 403 error, check if primary or secondary
rate limit has been reached
    - On primary rate limit breach, wait until hourly rate reset time
- On secondary rate limit breach, wait for `retry-after` response time
or an exponential time, starting at 60 seconds and doubling for each
attempt (following requirements from GitHub API docs)
- Prevent program waiting for more than 30 minutes for API rate reset
time
2025-03-11 14:24:49 +01:00
Breezebuilder
2521169bbc Merge branch 'main' of https://github.com/Breezebuilder/balatro-mod-index 2025-03-11 23:56:42 +11:00
Breezebuilder
3521106098 Improvements to mod version checking and GitHub API rate limit checking
- Check if download url links to latest head, and if so, use version of latest commit hash instead of release version
- Merge `get_latest_release` and `get_latest_commit` into `get_version_string` for less duplicate code
- Check and print GitHub API rate limit details including api resource, remaining calls, and reset time
- On exceeding rate limit or 403 error, check if primary or secondary rate limit has been reached
    - On primary rate limit breach, wait until hourly rate reset time
    - On secondary rate limit breach, wait for `retry-after` response time or an exponential time, starting at 60 seconds and doubling for each attempt, following GitHub API docs
- Prevent program waiting for more than 30 minutes for API rate reset time
2025-03-11 23:51:46 +11:00
Version Update Bot
f1fd9ba160 Auto-update mod versions (2025-03-11 12:08:46)
Updated mods:
- SauKhongHuDecks: v1.1.0 → v1.2.0 (release)
2025-03-11 12:08:46 +00:00
Efe
5e3f5dc7c4 Set automatic-version-check for all remaining mods (#112) 2025-03-11 07:47:43 +01:00
Breezebuilder
085b4cf561 Merge branch 'main' into main 2025-03-11 16:02:01 +11:00
Version Update Bot
c94cdd0227 Auto-update mod versions (2025-03-11 04:19:51)
Updated mods:
- Mistigris: 84459aa → 184502e (commit)
2025-03-11 04:19:51 +00:00
Breezebuilder
67316903c2 Set automatic-version-check to false for mods not using GitHub releases/latest or archive/refs downloadURLs
Mods changed:
Breezebuilder@SystemClock v1.6.4
cassiepepsi@TDQDeck v1.0.0
GitNether@balagay v1.0.0
Luuumine@BalaQuints v1.0
Nyoxide@DeckCreator v1.2.2
Snoresville@TurbulentJokers v1.1.3
StarletDevil@AzzysJokers v1.2.2
stupxd@Cartomancer v.4.11
wingedcatgirl@MintysSillyMod v0.4.0c
wingedcatgirl@SpectrumFramework v0.6.0
2025-03-11 15:13:18 +11:00
Version Update Bot
3230e4ae04 Auto-update mod versions (2025-03-11 02:54:00)
Updated mods:
- NeatoJokers: none → 1.1.0 (release)
2025-03-11 02:54:00 +00:00
Breezebuilder
3ec447df59 Update Thumbnail for Next Ante Preview (#111)
The mod has recieved a slight UI update; the thumbnail has been updated
to reflect this. The texture pack visible on the deck was also removed.
2025-03-11 13:50:07 +11:00
Breezebuilder
8ea593d857 Set automatic-version-check to true on all remaining mods and populate versions
Updated mods:
- The Dragon Quest Deck: none → v1.0.0 (release)
- Yippie: none → v0.0.6 (release)
- Planet Nine: none → v2.0.0 (release)
- HD Balatro: none → e96e8c9 (commit)
- Custom Suit Order: none → v1.0.2 (release)
- Next Ante Preview: none → v1.1.3a (release)
- Strange Library: none → v2.1.1 (release)
- Strange Pencil: none → v0.2.1 (release)
- Balatro-Preview: none → v3.2 (release)
- Textile: none → v1.0.1 (release)
- Galdur: none → v1.2 (release)
- Malverk: none → V1.1.3 (release)
- Finn's Pokélatro: none → d0a902a (commit)
- D6 Jokers: none → v0.7.22-DEMO (release)
- Balagay: none → v1.0.0 (release)
- Paperback: none → v0.6.2 (release)
- Gemstones: none → v0.8.0 (release)
- LocFixer: none → 8896d38 (commit)
- SauKhongHuDecks: none → v1.1.0 (release)
- Vietnamese Balatro: none → v1.3.0 (release)
- Multi Jokers: none → bab6c42 (commit)
- Pokermon: none → 2.7.0a (release)
- Fusion Jokers: none → fb52ba8 (commit)
- Codex Arcanum: none → cf24773 (commit)
- Flower Pot: none → v0.7.25 (release)
- Bad Apple: none → 0.1.0 (release)
- Deluxe Consumables: none → v1.0.1 (release)
- Redux Arcanum: none → 07a2dd4 (commit)
- KCVanilla: none → 2.4.1 (release)
- DeckSkinsLite: none → 78cb154 (commit)
- Better Mouse and Gamepad: none → v1.0.6c (release)
- CardSleeves: none → v1.6.9 (release)
- Rain World Karma Deck: none → c2f5a2b (commit)
- Celestial Funk: none → c8cf5cc (commit)
- Lucky Jimbos: none → 11e3f7d (commit)
- Lucky Legends I: none → ca0c118 (commit)
- LushMod: none → v0.3.0 (release)
- BalaQuints: none → v1.0 (release)
- Colorblind Seals: none → 3a31b59 (commit)
- Talisman: none → v2.1.0 (release)
- Trance: none → v1.0.0 (release)
- Lobotomy Corporation: none → 1.0.3b (release)
- NeatoJokers: none → 1.1.0 (release)
- GemSteel Texture: none → 134b9d1 (commit)
- JokerDisplay: none → v1.8.2.3 (release)
- JoyousSpring: none → v0.6.5.3 (release)
- X-Cards: none → 992b4ad (commit)
- Deck Creator: none → v1.2.2 (release)
- Buffoonery: none → v1.1.7 (release)
- Familiar: none → Familiar_Release (release)
- Ink And Color Suits: none → Berry (release)
- Snows Mods: none → DicedV0.2.1 (release)
- Revo's Vault: none → 3.8.5a (release)
- Multi Text Box: none → 5036873 (commit)
- SDM_0's Stuff: none → 1.6.4 (release)
- HandyBalatro: none → v1.3.2a (release)
- Turbulent Jokers: none → v1.1.3 (release)
- Balatro Draft: none → v0.5.2 (release)
- Azazel's Jokers: none → v1.2.2 (release)
- Steamodded: none → 1.0.0-beta-0305c (release)
- Blueprint: none → v.3.2 (release)
- Cartomancer: none → v.4.11 (release)
- Plantain: none → v1.0.2 (release)
- Main Menu Tweaks: none → 8c14dea (commit)
- Tetrapak: none → 1.0.3 (release)
- Maximus: none → v0.5.0-beta (release)
- Hand Preview: none → v1.0.0 (release)
- TOGA's Stuff: none → 01a4a1b (commit)
- Last Stand: none → e96277d (commit)
- Riff-Raffling: none → mod2 (release)
- Marvel's Midnight Suns Tarot: none → 19e1cba (commit)
- The Book of Thoth Tarot: none → 29e2e81 (commit)
- Minty's Silly Little Mod: none → v0.4.0c (release)
- Spectrum Framework: none → v0.6.0 (release)
- Binding of Isaac Tarot: none → 1.0 (release)
2025-03-11 13:42:53 +11:00
DigitalDetective47
88376b913e update thumbnail for Next Ante Preview 2025-03-10 22:35:44 -04:00
Breezebuilder
d574e1e072 Fix mod version updater failing for mods with repos ending with characters 'g', 'i', or 't'
`rstrip` removes any matched characters from the end of the string until an unmatched character is found
2025-03-11 13:34:02 +11:00
Breezebuilder
f47207016c Neatojokers mod-index update (#110)
Fixes some image issues in description.md, enables
`automatic-version-check`.
2025-03-11 12:47:13 +11:00
larswijn
98a043a6dd Enable automatic versioning for neatojokers 2025-03-11 02:00:04 +01:00
larswijn
824f921d9e Clean up neatojokers description.md 2025-03-11 01:59:21 +01:00
Ö. Efe D.
7ca6010436 Fix HandsomeDevils 2025-03-10 23:26:46 +01:00
Version Update Bot
2409de13a3 Auto-update mod versions (2025-03-10 22:15:12)
Updated mods:
- HandsomeDevils: none → v.1.1 (release)
2025-03-10 22:15:12 +00:00
Efe
a3b4ce75e0 Updated Thumbnail (#109) 2025-03-10 22:56:33 +01:00
AlexanderAndersonAmenAmen
6153ec5e9f Add files via upload 2025-03-11 00:50:50 +03:00
Efe
3734ce7cbb Handsome Devils mod! (#107) 2025-03-10 22:41:02 +01:00
AlexanderAndersonAmenAmen
e2b62787a1 Update meta.json 2025-03-11 00:38:21 +03:00
AlexanderAndersonAmenAmen
3acfe52ce7 Update meta.json 2025-03-11 00:30:06 +03:00
AlexanderAndersonAmenAmen
9bd69f1f5f auto update added 2025-03-11 00:27:09 +03:00
Version Update Bot
f7c47a2e2c Auto-update mod versions (2025-03-10 20:22:57)
Updated mods:
- Multiplayer: none → 0.1.8.4 (release)
2025-03-10 20:22:57 +00:00
Efe
32e2a9dc01 Added folderName and automaticVersionCheck for Multiplayer (#108) 2025-03-10 20:44:18 +01:00
Connor Mills
dbc1029953 Merge branch 'main' of https://github.com/V-rtualized/balatro-mod-index 2025-03-10 12:41:28 -07:00
Connor Mills
695791841d Added folderName and automaticVersionCheck for Multiplayer 2025-03-10 12:40:47 -07:00
AlexanderAndersonAmenAmen
653398ac35 Add files via upload 2025-03-10 22:31:41 +03:00
Efe
3f99e551e2 Update meta.json, Add HuyTheKiller@SauKhongHuDecks mod (#106) 2025-03-10 17:04:59 +01:00
HuyTheKiller
ff354629f6 Revert force folderName 2025-03-10 20:43:39 +07:00
HuyTheKiller
5d45a59225 Revert auto-update attempt 2025-03-10 20:40:38 +07:00
HuyTheKiller
29927918f8 No idea how auto-update works sob 2025-03-10 20:38:45 +07:00
HuyTheKiller
1098b9884a Add HuyTheKiller@SauKhongHuDecks mod 2025-03-10 17:40:58 +07:00
HuyTheKiller
347f00ba36 Update meta.json 2025-03-10 17:40:30 +07:00
Version Update Bot
ec535bc853 Auto-update mod versions (2025-03-10 01:03:35)
Updated mods:
- Mistigris: 7e526f2 → 84459aa (commit)
2025-03-10 01:03:35 +00:00
Version Update Bot
9a5f7a2223 Auto-update mod versions (2025-03-09 23:12:08)
Updated mods:
- Cryptid: none → v0.5.5 (release)
2025-03-09 23:12:08 +00:00
Efe
8657987d78 Update meta.json (#105) 2025-03-09 23:46:04 +01:00
MathIsFun0
5719a6a352 Update meta.json 2025-03-09 18:40:05 -04:00
Version Update Bot
021a5b03cc Auto-update mod versions (2025-03-09 22:13:08)
Updated mods:
- Balajeweled: none → v0.1.2 (release)
2025-03-09 22:13:08 +00:00
Efe
ac451d6ee0 Add automatic-version-check to ARandomTank7@Balajeweled (#104) 2025-03-09 22:42:02 +01:00
ART7
7f27c42b85 Add automatic-version-check to ARandomTank7@Balajeweled 2025-03-09 22:36:05 +01:00
Version Update Bot
fa1fb77708 Auto-update mod versions (2025-03-09 20:45:49)
Updated mods:
- Too Many Jokers: 3056960 → 262e4b2 (commit)
2025-03-09 20:45:49 +00:00