-
-
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
21 changed files
with
848,811 additions
and
619,346 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.csv | ||
.wowtools.json | ||
.wago_tools.json | ||
atlas.lua |
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 @@ | ||
acb4ae782e4c990ef764592e78bc9e85 |
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 @@ | ||
80b9d29886861d6f0225de09ca1d0476 |
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 @@ | ||
ac0b091d8852985a2ce03e416fbf1cf1 |
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 @@ | ||
5a468991f9812a6d3b2e08575c1211c2 |
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_config=$(jq -r ".${branch}.build_config" < .wago_tools.json) | ||
if [ -z "${build_config}" ] || [ "${build_config}" == "null" ]; then | ||
echo "${branch} build_config not found in .wago_tools.json" | ||
else | ||
lastbuildfile=".last_${branch}_build" | ||
if [ -f "${lastbuildfile}" ] && [[ ${build_config} == $(cat "${lastbuildfile}") ]]; then | ||
echo "${branch} build_config has not changed" | ||
else | ||
echo "New ${branch} build detected" | ||
csvfile="${branch}.csv" | ||
wget -O "${csvfile}" "https://wago.tools/api/files?branch=${branch}&search=.m2&format=csv" || { echo "Error while downloading ${csvfile}"; exit 1; } | ||
echo "${build_config}" > "${lastbuildfile}" | ||
lua csv_to_lua.lua "${branch}" || { echo "Error while creating ${branch}.lua"; exit 1; } | ||
fi | ||
fi | ||
} | ||
|
||
wget -O ".wago_tools.json" "https://wago.tools/api/builds/latest" || { echo "Error while downloading .wago_tools.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.
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
Oops, something went wrong.