Skip to content

Commit

Permalink
apacheGH-131: Don't use self-hosted arm runner on forks (apache#132)
Browse files Browse the repository at this point in the history
Fix apacheGH-131

It's not available on forks.
  • Loading branch information
kou authored Sep 17, 2024
1 parent 3e01c55 commit 12482ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ jobs:
"arch": "amd64",
"go": "1.23",
"runs-on": "ubuntu-latest"
},
}
JSON
if [ "$GITHUB_REPOSITORY_OWNER" = "apache" ]; then
echo "," >> "$GITHUB_OUTPUT"
cat <<JSON >> "$GITHUB_OUTPUT"
{
"arch-label": "ARM64",
"arch": "arm64v8",
Expand All @@ -67,6 +71,7 @@ jobs:
"runs-on": ["self-hosted", "arm", "linux"]
}
JSON
fi
echo "]" >> "$GITHUB_OUTPUT"
echo "JSON" >> "$GITHUB_OUTPUT"
docker:
Expand Down

0 comments on commit 12482ca

Please sign in to comment.