mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 22:40:58 -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
|
||||
shift
|
||||
token=$1
|
||||
shift
|
||||
|
||||
curl --fail -X $method -sS -H "Content-Type: application/json" -H "Authorization: token $token" "$@" $url/api/v1/$path
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue