We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18b2576 commit 94d5894Copy full SHA for 94d5894
.github/workflows/e2e-subtensor-tests.yaml
@@ -127,8 +127,7 @@ jobs:
127
128
echo "Reading labels ..."
129
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 "")
+ labels=$(jq -r '.pull_request.labels[]?.name' "$GITHUB_EVENT_PATH" | tr '\n' ' ' || echo "")
132
echo "Found labels: $labels"
133
else
134
labels=""
0 commit comments