mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-07-22 07:18:26 +02:00
chore: upgrade forgejo-curl.sh
This commit is contained in:
parent
2b01e2dc4f
commit
d7e60d3ba3
4 changed files with 125 additions and 125 deletions
|
@ -14,7 +14,7 @@ function repo_login() {
|
|||
local direction="$1"
|
||||
local repo=${options[${direction}_repo]}
|
||||
(
|
||||
export DOT=$TMPDIR/$repo
|
||||
export DOT_FORGEJO_CURL=$TMPDIR/$repo
|
||||
forgejo-curl.sh logout
|
||||
forgejo-curl.sh --token "${options[${direction}_token]}" login "${options[${direction}_url]}"
|
||||
)
|
||||
|
@ -23,7 +23,7 @@ function repo_login() {
|
|||
function repo_curl() {
|
||||
local repo=$1
|
||||
shift
|
||||
DOT=$TMPDIR/$repo forgejo-curl.sh "$@"
|
||||
DOT_FORGEJO_CURL=$TMPDIR/$repo forgejo-curl.sh "$@"
|
||||
}
|
||||
|
||||
function default_branch() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue