mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 22:40:58 -05:00
v3.0.0 and above have a different naming scheme
This commit is contained in:
parent
96cc7b4991
commit
78e5741fba
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@ function download() {
|
|||
local version="$2"
|
||||
|
||||
if ! which forgejo-runner > /dev/null; then
|
||||
curl -L --fail -sS $runner_repository/releases/download/$version/forgejo-runner-amd64 > /bin/forgejo-runner
|
||||
if ! curl -L --fail -sS $runner_repository/releases/download/$version/forgejo-runner-${version#v}-linux-amd64 > /bin/forgejo-runner ; then
|
||||
# backward compatibility for for the naming scheme prior to 3.0.0
|
||||
curl -L --fail -sS $runner_repository/releases/download/$version/forgejo-runner-linux-amd64 > /bin/forgejo-runner
|
||||
fi
|
||||
chmod 755 /bin/forgejo-runner
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue