Skip to content

Commit

Permalink
Merge pull request #735 from WowRarity/multiple-toc-versions
Browse files Browse the repository at this point in the history
Enable the TOC version check script to process comma-separated lists
  • Loading branch information
rdw-software authored Aug 15, 2024
2 parents d47e523 + 81b39cc commit 699802c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/check-interface-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
4 changes: 2 additions & 2 deletions Modules/Options/Rarity_Options.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Rarity.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 699802c

Please sign in to comment.