Read repo name from ci var
This commit is contained in:
parent
c1f43d98b3
commit
39d1286800
@ -15,13 +15,9 @@ if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then
|
||||
echo "No api key provided";
|
||||
exit 1;
|
||||
fi
|
||||
if [[ -n "${PLUGIN_REPO:-}"]]; then
|
||||
echo "No repo provided";
|
||||
exit 2;
|
||||
fi
|
||||
|
||||
curl --request POST \
|
||||
--url "https://$PLUGIN_GITEA_DOMAIN/api/v1/repos/$PLUGIN_REPO/releases" \
|
||||
--url "https://$PLUGIN_GITEA_DOMAIN/api/v1/repos/$CI_REPO_NAME/releases" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "Authorization: token $PLUGIN_GITEA_APIKEY" \
|
||||
--data "{
|
||||
|
Loading…
x
Reference in New Issue
Block a user