支持触发带部署上下文的 GitHub Actions

来源: Vercel News

原文

You can now trigger GitHub Actions workflows in response to Vercel deployment events with enriched data using repository_dispatch events. These events are sent from Vercel to GitHub, enabling more flexible, cost-efficient CI workflows, and easier end-to-end testing for Vercel deployments.

Previously, we recommended using deployment_status events, but these payloads were limited and required extra parsing or investigation to understand what changed.

With repository_dispatch, Vercel sends custom JSON payloads with full deployment context—allowing you to reduce Github Actions overhead and streamline your CI pipelines.

We recommend migrating to repository_dispatch for a better experience. deployment_status events will continue to work for backwards compatibility.

Read more