Read repo name from ci var

This commit is contained in:
2023-05-10 19:36:35 +02:00
parent c1f43d98b3
commit 39d1286800

View File

@@ -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 "{