diff --git a/forgejo-runner.sh b/forgejo-runner.sh index 4c955b6..bc3d165 100755 --- a/forgejo-runner.sh +++ b/forgejo-runner.sh @@ -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 }