This commit is contained in:
Brian Zalewski 2023-12-05 19:24:29 +00:00
parent a9a7e7269f
commit 8c10cd1bda

View file

@ -10180,7 +10180,7 @@ softwarePackages:
_github: https://github.com/actions/runner
_home: https://docs.github.com/en/actions/hosting-your-own-runners
_name: GitHub Runner
_when: '! test -f "$HOME/.local/github-runner/.runner"'
_when: '! test -d "$HOME/.local/github-runner"'
script: |
RELEASES="$(curl -sSL --compressed --header "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/actions/runner/releases/latest")"
LATEST_VERSION="$(echo "$RELEASES" | grep -o '"tag_name": "[^"]*' | grep -o '[^"]*$')"