Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created August 31, 2021 21:06
Show Gist options
  • Save KyMidd/e5b60b8a0b926ed9dd6b495329b65a84 to your computer and use it in GitHub Desktop.
Save KyMidd/e5b60b8a0b926ed9dd6b495329b65a84 to your computer and use it in GitHub Desktop.
# Find installed version and latest version
INSTALLED_VERSION=$(/actions-runner/config.sh --version)
LATEST_VERSION=$(curl --silent "https://api.github.com/repos/actions/runner/releases/latest" | grep tag_name | sed -E 's/.*"v([^"]+)".*/\1/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment