We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b87ecd commit 9ffa01bCopy full SHA for 9ffa01b
src/ci/scripts/free-disk-space.sh
@@ -15,15 +15,14 @@ isX86() {
15
}
16
17
# Check if we're on a GitHub hosted runner.
18
-# Otherwise, we are running in aws codebuild.
+# Otherwise, we are running in aws codebuild because on codebuild,
19
+# RUNNER_ENVIRONMENT is "self-hosted".
20
isGitHubRunner() {
- echo "RUNNER_ENVIRONMENT: ${RUNNER_ENVIRONMENT:-}"
21
- echo "RUNNER_NAME: ${RUNNER_NAME:-}"
22
# `:-` means "use the value of RUNNER_ENVIRONMENT if it exists, otherwise use an empty string".
23
if [[ "${RUNNER_ENVIRONMENT:-}" == "github-hosted" ]]; then
24
- return 1
25
- else
26
return 0
+ else
+ return 1
27
fi
28
29
0 commit comments