Skip to content

Commit bcddb20

Browse files
committed
test: add labels to filter
1 parent ad6534e commit bcddb20

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/deploy-cluster.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
contains(["edge_td"])
6969
)
7070
)
71-
| {name, ip: .ip_address}
71+
| {name, labels}
7272
)' "$response_file")
7373
7474
# 验证JSON有效性
@@ -82,16 +82,6 @@ jobs:
8282
8383
# 使用JSON格式输出
8484
echo "runners=$filtered_runners" >> $GITHUB_OUTPUT
85-
# response=$(/orgs/${{ github.repository_owner }}/actions/runners)
86-
# if [ -z "$response" ]; then
87-
# echo "No response from GitHub API"
88-
# exit 1
89-
# else
90-
# echo "Response from GitHub API: $response"
91-
# fi
92-
# available_runners=$(/orgs/${{ github.repository_owner }}/actions/runners | jq -r '.runners[] | select(.labels | any(.name | contains("fractal") or contains("edge_td"))) | {name: .name, ip: .ip_address}')
93-
# echo "Available runners: $available_runners"
94-
# echo "runners=$available_runners" >> $GITHUB_OUTPUT
9585
9686
# call-install:
9787
# runs-on:

0 commit comments

Comments
 (0)