mirror of
https://codeberg.org/pierreprinetti/forgejo-hetzner-runner.git
synced 2025-06-27 16:25:53 +00:00
9 lines
198 B
Bash
Executable file
9 lines
198 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
curl -sS \
|
|
-X GET \
|
|
-H "Authorization: Bearer ${HETZNER_API_TOKEN}" \
|
|
--url-query 'label_selector=role==runner' \
|
|
'https://api.hetzner.cloud/v1/servers'
|