diff --git a/.woodpecker/build-image.yaml b/.woodpecker/build-image.yaml index bc8e058..7f639b6 100644 --- a/.woodpecker/build-image.yaml +++ b/.woodpecker/build-image.yaml @@ -34,7 +34,7 @@ variables: --arg source 'text-mosaic' \ --arg title "$TITLE" \ --arg content "$CONTENT" \ - --arg priority "${NOTIFY_PRIORITY:-}" \ + --arg priority "$NOTIFY_PRIORITY" \ '{source: $source, title: $title, content: $content} + (if $priority == "" then {} else {priority: $priority} end)') curl -sS --fail-with-body --show-error -X POST -H 'content-type: application/json' \ -d "$PAYLOAD" \