diff --git a/.github/workflows/site-preview.yml b/.github/workflows/site-preview.yml index 118fc3e20..f836d816b 100644 --- a/.github/workflows/site-preview.yml +++ b/.github/workflows/site-preview.yml @@ -379,7 +379,9 @@ jobs: # replacements. This also covers abrupt runner termination where the # old run's EXIT trap did not execute. cancel_superseded_deployments "$VERCEL_PROJECT_ID" "english-preview" "English" - cancel_superseded_deployments "$VERCEL_TRANSLATIONS_PROJECT_ID" "translations-preview" "translations" + if [[ "$TRANSLATION_SCOPE" == "all" ]]; then + cancel_superseded_deployments "$VERCEL_TRANSLATIONS_PROJECT_ID" "translations-preview" "translations" + fi trap finalize_preview_comment EXIT trap 'exit 130' INT