1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

chore: unify cascade-setup-forgejo with cascade-forgejo (take 2)

This commit is contained in:
Earl Warren 2025-08-29 11:17:40 +02:00
parent 04801dedd5
commit 4bb2daca9d
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -8,9 +8,9 @@ runner=$3
runner_pr_or_ref=$4
if test -f "$runner_pr_or_ref"; then
url=$(jq --raw-output .head.repo.html_url <$runner_pr)
url=$(jq --raw-output .head.repo.html_url <$runner_pr_or_ref)
test "$url" != null
branch=$(jq --raw-output .head.ref <$runner_pr)
branch=$(jq --raw-output .head.ref <$runner_pr_or_ref)
else
url=https://code.forgejo.org/forgejo/runner
branch=${runner_pr_or_ref#refs/heads/}