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:
parent
04801dedd5
commit
4bb2daca9d
1 changed files with 2 additions and 2 deletions
|
@ -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/}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue