fixed bach synatax error
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
79f2a6cb62
commit
a38c402037
15
plugin.sh
15
plugin.sh
@ -8,14 +8,13 @@ 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
|
||||
if [[ -z "$PLUGIN_REPO"]]; then
|
||||
PLUGIN_REPO=$CI_REPO_NAME
|
||||
fi
|
||||
|
||||
@ -30,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user