From e77f6ece92e38eb34eba8927d2efb15fb1704bd8 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Mon, 11 May 2026 11:25:31 -0700 Subject: [PATCH] fix(ci): serialize Docs Deployment runs to avoid push races (#40030) Co-authored-by: Claude Code --- .github/workflows/superset-docs-deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/superset-docs-deploy.yml b/.github/workflows/superset-docs-deploy.yml index f260a442568..dbe4deb1839 100644 --- a/.github/workflows/superset-docs-deploy.yml +++ b/.github/workflows/superset-docs-deploy.yml @@ -17,6 +17,16 @@ on: workflow_dispatch: {} +# Serialize deploys: the action pushes to apache/superset-site without +# rebasing, so concurrent runs race on the final push and the loser fails +# with `! [rejected] asf-site -> asf-site (fetch first)`. Cancel any +# in-progress run as soon as a newer one starts — the destination repo +# isn't touched until the final push step, so canceling mid-build is safe, +# and the freshest content always wins. +concurrency: + group: docs-deploy-asf-site + cancel-in-progress: true + jobs: config: runs-on: ubuntu-24.04