Compare commits

..

3 Commits

Author SHA1 Message Date
a38c402037
fixed bach synatax error
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-10 19:42:04 +02:00
79f2a6cb62
use fallback instead of failing 2023-05-10 19:37:18 +02:00
39d1286800
Read repo name from ci var 2023-05-10 19:36:35 +02:00

View File

@ -8,16 +8,14 @@ PREVIOUSTAG=$(git tag --sort=-taggerdate | head -n 2 | tail -n 1)
ALLCHANGES=$(npx -y @philippdormann/changelogen@latest --from $PREVIOUSTAG --to $CURRENTTAG --no-output | sed 's/"/\\"/g' | tail -n +6)
FORMATTED_CHANGES=$(echo "# $CURRENTTAG \n $ALLCHANGES" | pandoc -f markdown -t html | sed 's/"/'"'"'/g' | xargs echo -n)
echo $PLUGIN_GITEA_DOMAIN;
if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then
if [[ -n "${PLUGIN_GITEA_APIKEY:-}"]]; then
if [[ -n "$PLUGIN_GITEA_DOMAIN" ]]; then
if [[ -z "$PLUGIN_GITEA_APIKEY"]]; then
echo "No api key provided";
exit 1;
fi
if [[ -n "${PLUGIN_REPO:-}"]]; then
echo "No repo provided";
exit 2;
if [[ -z "$PLUGIN_REPO"]]; then
PLUGIN_REPO=$CI_REPO_NAME
fi
curl --request POST \
@ -31,16 +29,16 @@ if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then
\"tag_name\": \"$CURRENTTAG\"
}"
fi
if [[ "${PLUGIN_MATRIX_SERVER:-}" == "true" ]]; then
if [[ -n "${PLUGIN_MATRIX_USER:-}"]]; then
if [[ -n "$PLUGIN_MATRIX_SERVER" ]]; then
if [[ -z "$PLUGIN_MATRIX_USER" ]]; then
echo "No matrix username provided";
exit 3;
fi
if [[ -n "${PLUGIN_MATRIX_PASSWORD:-}"]]; then
if [[ -z "$PLUGIN_MATRIX_PASSWORD" ]]; then
echo "No matrix password provided";
exit 4;
fi
if [[ -n "${PLUGIN_MATRIX_ROOM:-}"]]; then
if [[ -z "$PLUGIN_MATRIX_ROOM" ]]; then
echo "No matrix room id provided";
exit 4;
fi