What's Changed
Pre-release for testing the new webhook_filter deployment setting.
Set webhook_filter to a regular expression to whitelist deployment triggers based on the webhook event payload.
The reference in a webhook payload has always a pattern of refs/heads/<branch> for branches and refs/tags/<tag> for tags depending on the event (Or no reference at all if the event is not associated with a tag or a branch event).
Note
If the reference setting value is unset/empty, the reference of the webhook payload will be used for deployments. If reference is set, deployments for all events that pass the webhook_filter, will always run from that branch or tag.
You can specify the filter explicitly or in a loose form. Explicit regular expressions are recommended.
Explicit examples:
- only on events on the main branch:
^refs/heads/main$ - only on tag events with semantic versioning:
^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$)
Loose examples:
- Must contain
stablesomewhere in the reference:stable
Warning
Loose expressions can allow references that might not be wanted.
E.g. refs/heads/main (without ^ and $) also allows refs/heads/main-something
✨ Features
📦 Dependencies
Full Changelog: v0.39.1...v0.40.0-rc.1