From 6f60a2a7715363bd24c131b372adc674c6779854 Mon Sep 17 00:00:00 2001 From: RDW Date: Thu, 15 Aug 2024 20:25:56 +0200 Subject: [PATCH 1/2] CI: Enabled the TOC version check to process lists Piling more hacks onto this sketchy script, it now extracts the highest (latest) version number if there are multiple listed. I don't expect the approach to be any less brittle, but at least it should again function as an alert in case of outdated TOC versions. --- .github/check-interface-versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/check-interface-versions.sh b/.github/check-interface-versions.sh index ea49d3df..e9a4ca71 100755 --- a/.github/check-interface-versions.sh +++ b/.github/check-interface-versions.sh @@ -2,7 +2,7 @@ local_version=$(cat Rarity.toc | grep -oP '## Interface: \K\d+') options_version=$(cat Modules/Options/Rarity_Options.toc | grep -oP '## Interface: \K\d+') # Since there's no "official" way to get the latest version, just use a popular/frequently updated addon ... -remote_version=$(curl https://raw.githubusercontent.com/BigWigsMods/BigWigs/master/BigWigs.toc --silent | grep -oP '## Interface: \K\d+') +remote_version=$(curl https://raw.githubusercontent.com/BigWigsMods/BigWigs/master/BigWigs.toc --silent | grep -oP '## Interface:.*' | grep -oP '\d+' | sort -nr | head -n 1) if [ "$local_version" != "$remote_version" ]; then echo "Local interface version ($local_version) is not up to date with remote version ($remote_version)" From 81b39cc1b317e74441a94827d00dc34eeae52eba Mon Sep 17 00:00:00 2001 From: RDW Date: Thu, 15 Aug 2024 20:30:25 +0200 Subject: [PATCH 2/2] TOC: Updated the interface version for patch 11.0.2 --- Modules/Options/Rarity_Options.toc | 4 ++-- Rarity.toc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Options/Rarity_Options.toc b/Modules/Options/Rarity_Options.toc index da4d5da1..b3dde5bd 100644 --- a/Modules/Options/Rarity_Options.toc +++ b/Modules/Options/Rarity_Options.toc @@ -1,6 +1,6 @@ ## Author: Allara -## Interface: 100207 -## X-Min-Interface: 100207 +## Interface: 110002 +## X-Min-Interface: 110002 ## Notes: Rarity configuration. Use AddonLoader to load this on demand. ## Title: Rarity [|caaedc99fOptions|r] ## Dependencies: Rarity diff --git a/Rarity.toc b/Rarity.toc index 9450678f..121266da 100644 --- a/Rarity.toc +++ b/Rarity.toc @@ -1,6 +1,6 @@ ## Author: Allara -## Interface: 100207 -## X-Min-Interface: 100207 +## Interface: 110002 +## X-Min-Interface: 110002 ## Title: Rarity ## Version: 1.0 (@project-version@) ## X-Curse-Project-ID: 30801