Is there a URL to download the latest release of GHA runner? #54078
-
| Select Topic AreaQuestion BodyFor launching self-hosted runner we should download GHA runner tarball from https://github.com/actions/runner/releases. Is there a way to download the latest v2 release instead of updating download URL every few months? | 
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
| Yes, there is a URL that always points to the latest release of the self-hosted GitHub Actions runner. You can use the following URL to download the latest release tarball: https://github.com/actions/runner/releases/latest/download/actions-runner-linux-x64-.tar.gz Replace  Keep in mind that using the  | 
Beta Was this translation helpful? Give feedback.
-
| Did I misunderstand the directions? URL above doesn't seem to download latest. The directory resolved the latest version correctly, but the filename did not...  | 
Beta Was this translation helpful? Give feedback.
-
| This little script worked for me, based on the latest directory redirecting:  | 
Beta Was this translation helpful? Give feedback.
-
| yes — you can automate downloading the latest GitHub Actions Runner (v2) release without manually updating the URL every time. GitHub provides a consistent latest release endpoint that you can use to always fetch the most recent runner version programmatically. Option 1: Use the “latest” release URL This link always points to the latest stable release of the runner for your platform. 
 Option 2: Fetch latest release dynamically via GitHub API curl -s https://api.github.com/repos/actions/runner/releases/latest  This script uses the GitHub REST API to get the latest release metadata and download the corresponding file automatically. Option 3: Use version pinning for production If you manage many self-hosted runners, it’s still recommended to pin to a specific tested version for stability, and then update intentionally when a new release is verified. | 
Beta Was this translation helpful? Give feedback.
Yes, there is a URL that always points to the latest release of the self-hosted GitHub Actions runner. You can use the following URL to download the latest release tarball: https://github.com/actions/runner/releases/latest/download/actions-runner-linux-x64-.tar.gz
Replace
<version>with the specific version of the runner you want to download (e.g.,v2.278.0), and the URL will always download the latest release of the runner with that version number.Keep in mind that using the
latesttag may not always be suitable for production environments, as new releases can potentially introduce breaking changes or bugs that may affect your workflows. So it's a good practice to test the latest releas…