From 7d038a582ec93b7100b8bdabc36a519a7261e4df Mon Sep 17 00:00:00 2001 From: Sabeel Ansari Date: Fri, 7 Mar 2025 13:00:22 -0800 Subject: [PATCH] Revert listing avail runner Signed-off-by: Sabeel Ansari --- .github/workflows/pipeline.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 5eabca2f..6b0c4e5f 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -45,14 +45,11 @@ jobs: steps: - name: List available runners run: | - echo "Fetching available runners..." - response=$(curl -s -H "Authorization: Bearer ${{ secrets.ORG_PAT }}" \ - -H "Accept: application/vnd.github+json" \ - https://api.github.com/repos/${{ github.repository }}/actions/runners) - - echo "Filtering runners with 'es2k-runner' label..." - echo "$response" | jq '.runners[] | select(.labels[].name == "es2k-runner") | {name, status, labels}' - + echo "Available runners:" + curl -s -H "Authorization: Bearer ${{ secrets.ORG_PAT }}" \ + https://api.github.com/repos/${{ github.repository }}/actions/runners \ + | jq '.runners?[]? | {name, status, labels}' || echo "No runners found." + - name: Log selected runner run: | echo "This job is running on runner: $RUNNER_NAME"