diff --git a/.github/pull_hub_items.sh b/.github/pull_hub_items.sh index 621f34255d..56433904aa 100755 --- a/.github/pull_hub_items.sh +++ b/.github/pull_hub_items.sh @@ -8,6 +8,7 @@ for item in ${RT[@]}; do body=$(curl -s -H "accept: application/json" https://hub.windmill.dev/resource_types/${id}/${name}) jq -r '.resource_type.schema' <<< "$body" > ./tmp description=$(jq -r '.resource_type.description' <<< "$body") + description=$(echo -E $description) echo "{\"workspace_id\": \"starter\", \"name\": \"$name\", \"schema\": $(cat ./tmp), \"description\": \"$description\"} " | jq . > community/resource_types/${name}.json rm ./tmp done diff --git a/community/resource_types/discord_webhook.json b/community/resource_types/discord_webhook.json new file mode 100644 index 0000000000..220acd5e74 --- /dev/null +++ b/community/resource_types/discord_webhook.json @@ -0,0 +1,16 @@ +{ + "workspace_id": "starter", + "name": "discord_webhook", + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "properties": { + "webhook_url": { + "type": "string", + "description": "The webhook url" + } + }, + "required": [], + "type": "object" + }, + "description": "Discord webhook url to send messages. See: " +}