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

cascading-pr update

This commit is contained in:
cascading-pr 2023-11-03 23:12:32 +00:00
parent e306c53760
commit f9010a64e9

View file

@ -88,7 +88,7 @@ function login_api() {
fi fi
( echo -n "Authorization: token " ; cat $DOT/token ) > $DOT/header-token ( echo -n "Authorization: token " ; cat $DOT/token ) > $DOT/header-token
# #
# Verify it works # Verify the token works
# #
local status=$(api -w "%{http_code}" -o /dev/null "${url}/api/v1/user") local status=$(api -w "%{http_code}" -o /dev/null "${url}/api/v1/user")
if test "${status}" != 200 ; then if test "${status}" != 200 ; then