From 9a161c56ad2e92757c8f34c0901e64c6ce1e6219 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 15 Sep 2022 09:14:56 +0000 Subject: [PATCH] chore: fix docs pipeline (backport #27794) (#27795) * chore: fix docs pipeline (#27794) * trigger docs build when .github/workflows/docs.yml changed * echo tag info * echo channel info * echo any changes info * bump tj-actions/changed-files@v29.0.7 * fix variable name * fix broken link (cherry picked from commit 6eeff08b156e3285f9ffd93c0f289c735b612a32) # Conflicts: # docs/src/getstarted/local.md * fix conflict Co-authored-by: Yihau Chen --- .github/workflows/docs.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e57865565d352d..72d5e9c20b6922 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,21 +31,25 @@ jobs: - name: Get specific changed files id: changed-files-specific - uses: tj-actions/changed-files@v19 + uses: tj-actions/changed-files@v29.0.7 with: files: | + .github/workflows/docs.yml docs/** - name: Pre Build id: prebuild run: | + echo "tag: ${{ steps.check.outputs.tag }}" + echo "channel: ${{ steps.check.outputs.channel }}" + echo "any changes: ${{ steps.changed-files-specific.outputs.any_changed }}" echo "::set-output name=need_to_build::${{ steps.check.outputs.tag != '' || ( (steps.check.outputs.channel == 'edge' || steps.check.outputs.channel == 'beta') && - steps.changed-files-specific.outputs.any_change != '' + steps.changed-files-specific.outputs.any_changed != '' ) }}" shell: bash