-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
83 additions
and
669,162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5daa07780ec9d83068d663a61984ce7d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ccce0cc7e9e008ef5453a0b27fe84376 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
b5941573a8b317c5765f041fb9cfb4cb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
350bfb27a691f8c5479170218ddc9266 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
update_model_paths() { | ||
branch=$1 | ||
|
||
build=$(jq -r ".${branch}" < .wowtools.json) | ||
if [ -z "${build}" ] || [ "${build}" == "null" ]; then | ||
echo "${branch} build not found in .wowtools.json" | ||
else | ||
lastbuildfile=".last_${branch}_build" | ||
if [ -f "${lastbuildfile}" ] && [[ ${build} == $(cat "${lastbuildfile}") ]]; then | ||
echo "${branch} build has not changed" | ||
else | ||
echo "New ${branch} build detected" | ||
csvfile="${branch}.csv" | ||
wget -O "${csvfile}" "https://wago.tools/api/files?branch=${branch}&search=.m2" || { echo "Error while downloading ${csvfile}"; exit 1; } | ||
echo "${build}" > "${lastbuildfile}" | ||
lua csv_to_lua.lua "${branch}" || { echo "Error while creating ${branch}.lua"; exit 1; } | ||
fi | ||
fi | ||
} | ||
|
||
wget -O ".wowtools.json" "https://old.wow.tools/api.php?type=currentbc" || { echo "Error while downloading .wowtools.json"; exit 1; } | ||
|
||
branches=("wow" "wow_classic" "wow_classic_beta" "wow_classic_era") | ||
|
||
for branch in "${branches[@]}" | ||
do | ||
update_model_paths "$branch" | ||
done | ||
|
||
mv ModelPaths*.lua ../../WeakAurasModelPaths/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Create WeakAurasModelPaths Update Pull Request | ||
|
||
on: | ||
schedule: | ||
- cron: '0 10 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
modelPathsUpdate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: leafo/gh-actions-lua@v10 | ||
|
||
- name: Update WeakAurasModelPaths from wago.tools | ||
run: | | ||
cd .github/scripts/ | ||
./update-model-paths.sh | ||
shell: bash | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
branch: update-modelpaths | ||
commit-message: Update WeakAurasModelPaths from wago.tools | ||
title: Update WeakAurasModelPaths from wago.tools | ||
body: Update WeakAurasModelPaths from wago.tools | ||
delete-branch: true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.