Skip to content

Commit

Permalink
Revert listing avail runner
Browse files Browse the repository at this point in the history
Signed-off-by: Sabeel Ansari <sabeel.ansari@intel.com>
  • Loading branch information
5abeel committed Mar 7, 2025
1 parent 4557213 commit 7d038a5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7d038a5

Please sign in to comment.