1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-19 01:46:16 +00:00

remove extra token argument from API

This commit is contained in:
Earl Warren 2023-06-14 22:00:42 +02:00
parent 4ebf29226f
commit 3a6f1eb8f9
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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
}