1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-19 18:06:17 +00:00

Merge pull request 'remove extra token argument from API' (#27) from earl-warren/setup-forgejo:wip-api into main

Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/27
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2023-06-14 20:05:55 +00:00
commit f959b290ec

View file

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