Update .gitea/actions/test-links/action.yml
This commit is contained in:
@@ -130,9 +130,12 @@ runs:
|
|||||||
# For README, group by skin name
|
# For README, group by skin name
|
||||||
> /tmp/skins_$$.txt
|
> /tmp/skins_$$.txt
|
||||||
|
|
||||||
# Extract unique skin names from download links
|
# Extract unique skin names from download links and decode them
|
||||||
if [ -s /tmp/download_$$.txt ]; then
|
if [ -s /tmp/download_$$.txt ]; then
|
||||||
grep -oP 'export/[^/]+' /tmp/download_$$.txt | sed 's|export/||' | sort -u > /tmp/skins_$$.txt || true
|
grep -oP 'export/[^/]+' /tmp/download_$$.txt | sed 's|export/||' | while read -r encoded_name; do
|
||||||
|
# Decode the skin name
|
||||||
|
echo "$encoded_name" | sed 's/%20/ /g' | sed 's/%23/#/g' | sed 's/%28/(/g' | sed 's/%29/)/g' | sed 's/%E2%80%A2/•/g' | sed 's/%E1%9A%96/ᚖ/g' | sed 's/%E3%80%8A/《/g' | sed 's/%E3%80%8B/》/g' | sed 's/%E3%80%8E/『/g' | sed 's/%E3%80%8F/』/g' | sed 's/%E2%9B%94/⛔/g' | sed 's/%E2%9C%A8/✨/g' | sed 's/%7B/{/g' | sed 's/%7D/}/g' | sed 's/%2B/+/g' | sed 's/%E3%83%86/テ/g' | sed 's/%E3%83%B3/ン/g' | sed 's/%E3%83%8D/ネ/g' | sed 's/%E3%82%B9/ス/g' | sed 's/%E3%82%A4/イ/g' | sed 's/%E3%83%BB/・/g' | sed 's/%E3%83%95/フ/g' | sed 's/%E3%83%AA/リ/g' | sed 's/%E3%83%BC/ー/g' | sed 's/%E3%83%8A/ナ/g' | sed 's/%5B/[/g' | sed 's/%5D/]/g' | sed 's/%2C/,/g'
|
||||||
|
done | sort -u > /tmp/skins_$$.txt || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Show general links first (not skin-specific)
|
# Show general links first (not skin-specific)
|
||||||
|
|||||||
Reference in New Issue
Block a user