From 9ea3b2c458bffc7299eb8cc1f0cbd8b6440fd9aa Mon Sep 17 00:00:00 2001 From: ebembi-crdb Date: Thu, 21 May 2026 20:54:56 +0530 Subject: [PATCH 1/2] chore: extract Netlify site name into env var for configurability Replaces the hardcoded `cockroachdb-docs` Netlify site name in the changed_files workflow with a `NETLIFY_SITE_NAME` env var (defaulting to the current value). This makes it easy to update the preview URL after reconnecting Netlify to the new org. Part of Project Stanley (EDUENG-720, Ticket 1). Co-Authored-By: Claude Opus 4.6 --- .github/workflows/changed_files.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changed_files.yml b/.github/workflows/changed_files.yml index 18963c60d62..786ba589cb8 100644 --- a/.github/workflows/changed_files.yml +++ b/.github/workflows/changed_files.yml @@ -27,9 +27,11 @@ jobs: files=($files) IFS=$SAVEIFS + NETLIFY_SITE_NAME="${NETLIFY_SITE_NAME:-cockroachdb-docs}" + function generateMainFiles() { html_file=`echo "${1%.md}.html" | sed -E 's/src\/[^\/]*\///g'` - file="
  • $1
  • " + file="
  • $1
  • " output+="$file" } @@ -86,7 +88,7 @@ jobs: read -ra path <<< "$file" IFS=$OLDIFS major_version=${path[-2]} - file="
  • ${file}:
  • " + file="
  • ${file}:
  • " output+="$file" elif [[ $file == src/*/_includes/v* || $file == src/*/_includes/cockroachcloud* || $file == src/*/images/* ]] && [[ $file != src/**/*.json ]] && [[ $file != *.gitignore* ]] then From 354b6ec93560b241af0a8e4fd28988f6613cae49 Mon Sep 17 00:00:00 2001 From: ebembi-crdb Date: Mon, 25 May 2026 18:53:11 +0530 Subject: [PATCH 2/2] chore: update defaults to cockroachlabs org Co-Authored-By: Claude Opus 4.6 --- .github/workflows/changed_files.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/changed_files.yml b/.github/workflows/changed_files.yml index 786ba589cb8..f74a3d77f5b 100644 --- a/.github/workflows/changed_files.yml +++ b/.github/workflows/changed_files.yml @@ -16,6 +16,7 @@ jobs: id: format env: GH_TOKEN: ${{ github.token }} + NETLIFY_SITE_NAME: ${{ vars.NETLIFY_SITE_NAME || 'cockroachlabs-docs' }} run: | declare -a output pr_num=${{ github.event.pull_request.number }}