Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix shell quoting and gh auth in docs suggestions workflow (#49518)
morgankrey045b740090db
diff --git a/.github/workflows/docs_suggestions.yml b/.github/workflows/docs_suggestions.ymlindex fc55617edc7..be1229e5fec 100644--- a/.github/workflows/docs_suggestions.yml+++ b/.github/workflows/docs_suggestions.yml@@ -94,6 +94,9 @@ jobs:- name: Analyze PR for documentation needsid: analyzerun: |+ # Ensure gh CLI is authenticated (GH_TOKEN may not be auto-detected)+ echo "$GH_TOKEN" | gh auth login --with-token+OUTPUT_FILE=$(mktemp)./script/docs-suggest \@@ -119,13 +122,13 @@ jobs:- name: Commit suggestions to queue branchif: steps.analyze.outputs.has_suggestions == 'true'+ env:+ PR_NUM: ${{ steps.pr.outputs.number }}+ PR_TITLE: ${{ steps.pr.outputs.title }}+ OUTPUT_FILE: ${{ steps.analyze.outputs.output_file }}run: |set -euo pipefail- PR_NUM="${{ steps.pr.outputs.number }}"- PR_TITLE="${{ steps.pr.outputs.title }}"- OUTPUT_FILE="${{ steps.analyze.outputs.output_file }}"-# Configure gitgit config user.name "github-actions[bot]"git config user.email "github-actions[bot]@users.noreply.github.com"@@ -264,6 +267,9 @@ jobs:- name: Analyze PR for documentation needsid: analyzerun: |+ # Ensure gh CLI is authenticated (GH_TOKEN may not be auto-detected)+ echo "$GH_TOKEN" | gh auth login --with-token+OUTPUT_FILE=$(mktemp)# Cherry-picks don't get preview callout