DEVOPS

Auto-promote a passing Vercel preview and notify Slack on GitLab MR approval

When a GitLab MR is approved and its Vercel preview clears both a Lighthouse and an accessibility re-check, the workflow promotes the deployment to staging via Vercel and posts…

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerevent
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitLab MR approvedGitLabGitLab
  • ActionRe-run Lighthouse + axe-core on previewShell
  • LogicPass or fail from combined results
  • ActionPromote deployment to staging on passVercelVercel
  • OutputNotify Slack with scores or block reasonSlack

What it does

Closes the loop on the QA gate: on approval it re-verifies the preview is still healthy, then promotes it to the staging environment automatically and announces the result. A failing re-check blocks promotion and explains the failure rather than shipping silently.

When to use it

Use it when approval should mean "ship to staging now" but you refuse to promote anything that has drifted out of spec since the last audit. Ideal for teams wanting hands-off promotion with a final safety check.

How it works

  1. 1A GitLab MR-approved webhook fires with the preview deployment reference.
  2. 2A shell step re-runs Lighthouse and an axe-core a11y check against the preview URL.
  3. 3A logic branch decides pass or fail from the combined results.
  4. 4On pass, a Vercel action promotes the deployment to the staging environment.
  5. 5On pass, a Slack message posts the scores and the live staging URL.
  6. 6On fail, promotion is skipped and Slack receives the blocking reason instead.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitLabRepos, MRs, pipelines, registry.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  3. 3
    Connect VercelDeploys, runtime logs, analytics.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.