Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Make docs-only check a no-op in the merge queue (#22576)
Marshall Bowers20c0d72fe4cd
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 9e75a88cb12..ee13f86a933 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -35,7 +35,12 @@ jobs:- name: Check for non-docs changesid: check_changesrun: |- if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -qvE '^docs/'; then+ if [ "${{ github.event_name }}" == "merge_group" ]; then+ # 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 "docs_only=false" >> $GITHUB_OUTPUT+ elif git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -qvE '^docs/'; thenecho "docs_only=false" >> $GITHUB_OUTPUTelseecho "docs_only=true" >> $GITHUB_OUTPUT