Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Add logging to docs-only change detection (#22724)
Marshall Bowers2023c436819d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex ee13f86a933..f9d322294e2 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -39,10 +39,13 @@ jobs:# When we're running in a merge queue, never assume that the changes# are docs-only, as there could be other PRs in the group that# contain non-docs changes.+ echo "Running in the merge queue"echo "docs_only=false" >> $GITHUB_OUTPUTelif git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -qvE '^docs/'; then+ echo "Detected non-docs changes"echo "docs_only=false" >> $GITHUB_OUTPUTelse+ echo "Docs-only change"echo "docs_only=true" >> $GITHUB_OUTPUTfi