Bridge HTTP Webhooks to MQTT Topics
A webhook trigger receives JSON events over HTTP and republishes selected fields as a JSON MQTT message to a topic named in the request, with Slack notes per event.
Schedule-driven Kestra flow that queries GitHub Releases API, filters drafts with Python, and posts Discord alerts for new tags using KV-backed deduplication.
Stop finding out about upstream releases from a colleague or a broken build. This blueprint watches any GitHub repository on a six-hour schedule, compares the latest release tag against a KV-backed last-known value, and posts a rich Discord embed the moment a genuinely new version lands, complete with tag, author, publish date, and a truncated changelog summary. Draft releases are filtered out, duplicate alerts are suppressed, and the error handler sends its own Discord message if the monitoring flow itself breaks, so you never silently miss a release.
Schedule trigger (io.kestra.plugin.core.trigger.Schedule) fires every six hours via the cron 0 */6 * * *.fetch_latest_release task (io.kestra.plugin.core.http.Request) calls the GitHub Releases API at /repos/{owner}/{repo}/releases/latest with a bearer token and allowFailed: true so a 404 for repos with no releases does not crash the flow.parse_release task (io.kestra.plugin.scripts.python.Script) deserializes the JSON, extracts the tag name, release name, author, published date, pre-release flag, and a 300-character body summary, then sets should_alert to false for drafts or empty tags.If flowable (io.kestra.plugin.core.flow.If) gates all downstream work on should_alert == true.kv.Get task retrieves the last-known tag from the Kestra KV store. A nested If compares it to the fetched tag; only a mismatch triggers the alert path.send_discord_alert task (io.kestra.plugin.discord.DiscordExecution) posts a color-coded embed with the release name, tag, author, date, pre-release status, changelog snippet, and a direct link.kv.Set task persists the new tag so the next run skips it.errors block sends a separate Discord embed if any task fails, ensuring the monitoring itself is monitored.A GitHub webhook could push release events, but it requires a publicly reachable endpoint, webhook secret management, and custom server code. A cron script works until the machine reboots or the state file gets lost. Kestra replaces both with declarative YAML: the schedule is version-controlled, the KV store persists deduplication state across runs without an external database, retries protect against transient GitHub or Discord outages, and the execution timeline shows exactly when each release was detected and whether the alert was sent or skipped.
repo (or public_repo for public repositories) scope.GITHUB_TOKEN: GitHub personal access token used to authenticate API requests and avoid rate limits.DISCORD_WEBHOOK: Discord incoming webhook URL where release alerts are posted.GITHUB_TOKEN and DISCORD_WEBHOOK as secrets in your Kestra namespace.github_owner and github_repo input defaults to the repository you want to watch, or leave them as kestra-io/kestra for an immediate test.parse_release outputs and verify the Discord embed arrives.release_check_schedule trigger. The KV store will initialize on the first run and suppress duplicates from the second run onward.Loop over an ARRAY input of owner/repo pairs.and not is_prerelease to the should_alert condition in the Python script.kestra.plugin.core.flow.Subflow task after the alert.