Skip to content

Commit 329d762

Browse files
committed
👷 keep existing cache
1 parent 44c3e5c commit 329d762

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/tools-data.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jobs:
2929
- name: Tools release cache key
3030
id: test-data-key
3131
run: |
32-
LATEST_RELEASE=$(curl -sLH 'Accept: application/json' https://api.github.com/repos/5etools-mirror-2/5etools-mirror-2.github.io/releases/latest)
33-
LATEST_VERSION=$(echo $LATEST_RELEASE | grep tag_name | sed -e 's/.*"tag_name": "\([^"]*\)".*/\1/')
34-
echo $LATEST_VERSION
32+
# LATEST_RELEASE=$(curl -sLH 'Accept: application/json' https://api.github.com/repos/5etools-mirror-2/5etools-mirror-2.github.io/releases/latest)
33+
# LATEST_VERSION=$(echo $LATEST_RELEASE | grep tag_name | sed -e 's/.*"tag_name": "\([^"]*\)".*/\1/')
34+
# echo $LATEST_VERSION
35+
LATEST_VERSION="v1.209.3"
3536
3637
echo "🔹 Use $LATEST_VERSION"
3738
echo "tools_version=${LATEST_VERSION}" >> $GITHUB_OUTPUT
@@ -55,23 +56,23 @@ jobs:
5556
run: |
5657
mkdir -p sources
5758
58-
echo "🔹 Download $LATEST_VERSION"
59-
ARTIFACT_URL="https://github.com/5etools-mirror-2/5etools-mirror-2.github.io/archive/refs/tags/$LATEST_VERSION.tar.gz"
60-
VER=$(echo $LATEST_VERSION | cut -c 2-)
61-
ROOT="5etools-mirror-2.github.io-$VER"
59+
# echo "🔹 Download $LATEST_VERSION"
60+
# ARTIFACT_URL="https://github.com/5etools-mirror-2/5etools-mirror-2.github.io/archive/refs/tags/$LATEST_VERSION.tar.gz"
61+
# VER=$(echo $LATEST_VERSION | cut -c 2-)
62+
# ROOT="5etools-mirror-2.github.io-$VER"
6263
63-
curl -LsS -o 5etools.tar.gz $ARTIFACT_URL
64-
tar xzf 5etools.tar.gz ${ROOT}/data
65-
mv ${ROOT} sources/5etools-mirror-2.github.io
64+
# curl -LsS -o 5etools.tar.gz $ARTIFACT_URL
65+
# tar xzf 5etools.tar.gz ${ROOT}/data
66+
# mv ${ROOT} sources/5etools-mirror-2.github.io
6667
67-
gh repo clone 5etools-mirror-2/5etools-img sources/5etools-img -- --depth=1
68-
gh repo clone TheGiddyLimit/unearthed-arcana sources/5e-unearthed-arcana -- --depth=1
69-
gh repo clone TheGiddyLimit/homebrew sources/5e-homebrew -- --depth=1
68+
# gh repo clone 5etools-mirror-2/5etools-img sources/5etools-img -- --depth=1
69+
# gh repo clone TheGiddyLimit/unearthed-arcana sources/5e-unearthed-arcana -- --depth=1
70+
# gh repo clone TheGiddyLimit/homebrew sources/5e-homebrew -- --depth=1
7071
71-
# Remove image contents. We just need the files to exist (linking)
72-
find sources -type f -type f \
73-
\( -iname \*.jpg -o -iname \*.png -o -iname \*.webp \) \
74-
| while read FILE; do echo > "$FILE"; done
72+
# # Remove image contents. We just need the files to exist (linking)
73+
# find sources -type f -type f \
74+
# \( -iname \*.jpg -o -iname \*.png -o -iname \*.webp \) \
75+
# | while read FILE; do echo > "$FILE"; done
7576
7677
ls -al sources
7778

0 commit comments

Comments
 (0)