Skip to content

Commit 94d5894

Browse files
committed
ci: fix e2e subtensor label detection without gh auth
1 parent 18b2576 commit 94d5894

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/e2e-subtensor-tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ jobs:
127127
128128
echo "Reading labels ..."
129129
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
130-
# Use GitHub CLI to read labels (works for forks too)
131-
labels=$(gh pr view ${{ github.event.pull_request.number }} -R ${{ github.repository }} --json labels --jq '.labels[].name' || echo "")
130+
labels=$(jq -r '.pull_request.labels[]?.name' "$GITHUB_EVENT_PATH" | tr '\n' ' ' || echo "")
132131
echo "Found labels: $labels"
133132
else
134133
labels=""

0 commit comments

Comments
 (0)