diff --git a/.github/workflows/changed_files.yml b/.github/workflows/changed_files.yml index 18963c60d62..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 }} @@ -27,9 +28,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 +89,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