Skip to content

Commit 8024220

Browse files
committed
Fix action.yml to use static filenames without version numbers
1 parent e776eeb commit 8024220

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

action.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,28 +66,28 @@ runs:
6666
6767
echo "Platform: $PLATFORM"
6868
69-
# Determine version to download
69+
# Determine download URL based on version
7070
if [[ "${{ inputs.version }}" == "latest" ]]; then
71-
VERSION=$(curl -s https://api.github.com/repos/nickprotop/LocalizationManager/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')
71+
# Use /latest/download for static filenames
72+
BASE_URL="https://github.com/nickprotop/LocalizationManager/releases/latest/download"
7273
else
73-
VERSION="${{ inputs.version }}"
74+
# Use specific version tag
75+
BASE_URL="https://github.com/nickprotop/LocalizationManager/releases/download/v${{ inputs.version }}"
7476
fi
7577
76-
echo "Version: $VERSION"
77-
78-
# Download URL
78+
# Download URL (static filenames without version)
7979
if [[ "$RUNNER_OS" == "Windows" ]]; then
80-
FILENAME="lrm-${VERSION}-${PLATFORM}.zip"
81-
URL="https://github.com/nickprotop/LocalizationManager/releases/download/v${VERSION}/${FILENAME}"
80+
FILENAME="lrm-${PLATFORM}.zip"
81+
URL="${BASE_URL}/${FILENAME}"
8282
8383
echo "Downloading from: $URL"
8484
curl -L -o lrm.zip "$URL"
8585
unzip -q lrm.zip -d lrm-bin
8686
chmod +x lrm-bin/${PLATFORM}/lrm.exe
8787
echo "lrm_path=$(pwd)/lrm-bin/${PLATFORM}/lrm.exe" >> $GITHUB_OUTPUT
8888
else
89-
FILENAME="lrm-${VERSION}-${PLATFORM}.tar.gz"
90-
URL="https://github.com/nickprotop/LocalizationManager/releases/download/v${VERSION}/${FILENAME}"
89+
FILENAME="lrm-${PLATFORM}.tar.gz"
90+
URL="${BASE_URL}/${FILENAME}"
9191
9292
echo "Downloading from: $URL"
9393
curl -L -o lrm.tar.gz "$URL"

0 commit comments

Comments
 (0)