From 6b3d7ae8218023e1259c687aa8e162767b0c89b5 Mon Sep 17 00:00:00 2001 From: nowgnas Date: Sun, 3 Nov 2024 23:32:07 +0900 Subject: [PATCH] amend github actoin --- .github/workflows/summarize.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/summarize.yml b/.github/workflows/summarize.yml index 7472d19..e4c10e1 100644 --- a/.github/workflows/summarize.yml +++ b/.github/workflows/summarize.yml @@ -36,12 +36,8 @@ jobs: - name: Get Changed Files id: get_files run: | - # Get the base branch of the PR - BASE_BRANCH=${{ github.event.pull_request.base.ref }} - echo "Base branch: $BASE_BRANCH" - # Get the changed files between the PR branch and the base branch - CHANGED_FILES=$(git diff --name-only origin/$BASE_BRANCH...HEAD) + CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }}) # Filter the changed files for the desired pattern FILTERED_FILES=$(echo "$CHANGED_FILES" | grep -E 'week[0-9]+/.*_link\.md$')