File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI Experiment
22on :
33 workflow_dispatch :
4+ push :
5+ branches :
6+ - main
47
58jobs :
69 update-runner-labels :
710 name : Update runner labels
8- strategy :
9- matrix :
10- labels :
11- - self-hosted
12- runs-on : [ self-hosted ]
11+ runs-on : [self-hosted]
1312 steps :
1413 - name : Print machine name
1514 run : |
1615 echo "Machine name: $(scutil --get ComputerName)"
1716 - name : Print formatted runner data
1817 run : |
19- response=$(curl -s -L -i \
18+ response=$(curl -L \
2019 -H "Accept: application/vnd.github+json" \
2120 -H "Authorization: Bearer ${{ secrets.RUNNER_CONFIG_TOKEN }}" \
2221 -H "X-GitHub-Api-Version: 2022-11-28" \
23- https://api.github.com/orgs /inconcept/actions/runners)
24-
25- echo "=== Runner Summary ==="
26- echo "Total runners: $(echo "$ response" | jq -r '.total_count')"
27- echo ""
28-
29- echo "=== Runner Details ==="
22+ https://api.github.com/repos /inconcept/ci-runner-experiments /actions/runners)
23+
24+ echo "=== Runner Summary ===" >> $GITHUB_STEP_SUMMARY
25+ echo $ response
26+ echo "Total runners: $(echo "$response" | jq -r '.total_count')" >> $GITHUB_STEP_SUMMARY
27+
28+ echo "=== Runner Details ===" >> $GITHUB_STEP_SUMMARY
3029 echo "$response" | jq -r '.runners[] |
3130 "Runner ID: \(.id)",
3231 "Name: \(.name)",
3534 "Busy: \(.busy)",
3635 "Ephemeral: \(.ephemeral)",
3736 "Labels: \([.labels[].name] | join(", "))",
38- "---"'
37+ "---"' >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments