Skip to content

Commit 9ffa01b

Browse files
committed
fix
1 parent 0b87ecd commit 9ffa01b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/ci/scripts/free-disk-space.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ isX86() {
1515
}
1616

1717
# Check if we're on a GitHub hosted runner.
18-
# Otherwise, we are running in aws codebuild.
18+
# Otherwise, we are running in aws codebuild because on codebuild,
19+
# RUNNER_ENVIRONMENT is "self-hosted".
1920
isGitHubRunner() {
20-
echo "RUNNER_ENVIRONMENT: ${RUNNER_ENVIRONMENT:-}"
21-
echo "RUNNER_NAME: ${RUNNER_NAME:-}"
2221
# `:-` means "use the value of RUNNER_ENVIRONMENT if it exists, otherwise use an empty string".
2322
if [[ "${RUNNER_ENVIRONMENT:-}" == "github-hosted" ]]; then
24-
return 1
25-
else
2623
return 0
24+
else
25+
return 1
2726
fi
2827
}
2928

0 commit comments

Comments
 (0)