Skip to content

Commit 6afb3b8

Browse files
committed
Temp
1 parent c7a3c89 commit 6afb3b8

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/run.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
11
name: CI Experiment
22
on:
33
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
47

58
jobs:
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)",
@@ -35,4 +34,4 @@ jobs:
3534
"Busy: \(.busy)",
3635
"Ephemeral: \(.ephemeral)",
3736
"Labels: \([.labels[].name] | join(", "))",
38-
"---"'
37+
"---"' >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)