mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 03:41:02 -05:00
remove extra token argument from API
This commit is contained in:
parent
4ebf29226f
commit
3a6f1eb8f9
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ function api() {
|
||||||
path=$1
|
path=$1
|
||||||
shift
|
shift
|
||||||
token=$1
|
token=$1
|
||||||
|
shift
|
||||||
|
|
||||||
curl --fail -X $method -sS -H "Content-Type: application/json" -H "Authorization: token $token" "$@" $url/api/v1/$path
|
curl --fail -X $method -sS -H "Content-Type: application/json" -H "Authorization: token $token" "$@" $url/api/v1/$path
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue