use fallback instead of failing
This commit is contained in:
parent
39d1286800
commit
79f2a6cb62
@ -15,9 +15,12 @@ if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then
|
||||
echo "No api key provided";
|
||||
exit 1;
|
||||
fi
|
||||
if [[ -n "${PLUGIN_REPO:-}"]]; then
|
||||
PLUGIN_REPO=$CI_REPO_NAME
|
||||
fi
|
||||
|
||||
curl --request POST \
|
||||
--url "https://$PLUGIN_GITEA_DOMAIN/api/v1/repos/$CI_REPO_NAME/releases" \
|
||||
--url "https://$PLUGIN_GITEA_DOMAIN/api/v1/repos/$PLUGIN_REPO/releases" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "Authorization: token $PLUGIN_GITEA_APIKEY" \
|
||||
--data "{
|
||||
|
Loading…
x
Reference in New Issue
Block a user