Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/scripts/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ check_builds_cache_runner() {
executable="$(readlink -f "/proc/$pid/exe")" || return 1
if [[ "$executable" = */bin/Runner.Worker || "$executable" = */bin/Runner.Worker.exe ]]; then
jq -e --arg name "${RUNNER_NAME:-}" \
'(.AgentName // .agentName) | . == $name and test("^(blacksmith|depot|nsc-runner)-")' \
'(.AgentName // .agentName) | . == $name and test("^(blacksmith|depot|nsc-runner|checklane)-")' \
"${executable%/bin/*}/.runner" >/dev/null 2>&1
return $?
fi
Expand All @@ -93,7 +93,7 @@ read_env() {
if [[ $_runner = "self-hosted" && "${use_builds_cache:-false}" = "true" ]]; then
runner=github
if [[ "${ID:-}" = "ubuntu" && -z "$ACT" && -z "$CONTAINER" &&
( -n "${BLACKSMITH_VM_ID:-}" || "${RUNNER_NAME:-}" =~ ^(blacksmith|depot|nsc-runner)- ) ]] && check_builds_cache_runner; then
( -n "${BLACKSMITH_VM_ID:-}" || "${RUNNER_NAME:-}" =~ ^(blacksmith|depot|nsc-runner|checklane)- ) ]] && check_builds_cache_runner; then
_runner=github
builds_cache_warning=true
fi
Expand Down
Loading