Skip to content

Commit 931d675

Browse files
Debug logging around UTY download failures.
1 parent 517acfd commit 931d675

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/deploy-uty.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ jobs:
1515
uses: ./.github/actions/steam-utmt-setup
1616
- name: Download Undertale Yellow
1717
run: |
18-
wget $(curl -s https://www.indiedb.com/downloads/start/293713 -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" | grep 'Click to' | sed -re 's|.*<a href="(/downloads/mirror/293713/[^"]+)".*|https://www.indiedb.com\1|') -qO game.zip
18+
curl -s https://www.indiedb.com/downloads/start/293713 -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" > indiedb.html
19+
download_link=$(cat indiedb.html | grep 'click the link to' | sed -re 's|.*<a href="(/downloads/mirror/293713/[^"]+)".*|https://www.indiedb.com\1|')
20+
if [ -z "$download_link" ]
21+
then
22+
echo 'Failed to locate download link!'
23+
cat indiedb.html
24+
exit 1
25+
fi
26+
wget $download_link -qO game.zip
1927
unzip -p game.zip "Undertale Yellow v1_2_1/data.win" > data.win
2028
- name: Extract Undertale Yellow's code
2129
run: |

0 commit comments

Comments
 (0)