From e0596c7367a896521590cbeaa47ee98357b4d642 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Fri, 4 Oct 2024 15:59:09 +0100 Subject: [PATCH] update --- .github/workflows/preview-link.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/preview-link.yml b/.github/workflows/preview-link.yml index 8ea9a99aab8..8c5bb7d6dea 100644 --- a/.github/workflows/preview-link.yml +++ b/.github/workflows/preview-link.yml @@ -76,18 +76,12 @@ jobs: - name: Get changed files id: files run: | - # Get the list of changed files in the specified directories CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -E '^website/docs/(docs|best-practices|guides|faqs|reference)/.*\.md$' || true) - echo "Changed files:" - echo "$CHANGED_FILES" - - # Check if any files were changed if [ -z "$CHANGED_FILES" ]; then echo "No documentation files were changed." echo "changed_files=" >> $GITHUB_OUTPUT else - # Convert line-separated files to space-separated for easier handling - CHANGED_FILES="$(echo "$CHANGED_FILES" | tr '\n' ' ')" + CHANGED_FILES=$(echo "$CHANGED_FILES" | tr '\n' ' ') echo "changed_files=$CHANGED_FILES" >> $GITHUB_OUTPUT fi