From 2023c436819ddcb9144c20248342c901eea67bcd Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 6 Jan 2025 13:43:07 -0500 Subject: [PATCH] ci: Add logging to docs-only change detection (#22724) This PR adds some logging to the docs-only change detection, for better auditability. Release Notes: - N/A --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee13f86a93..f9d322294e 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_OUTPUT elif 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_OUTPUT else + echo "Docs-only change" echo "docs_only=true" >> $GITHUB_OUTPUT fi