From fba4c5edd0d7d412255cdfebea077e80c250ba57 Mon Sep 17 00:00:00 2001 From: lyie28 Date: Wed, 7 Aug 2024 12:27:00 +0200 Subject: [PATCH] fix CI --- .github/workflows/gh-monitor.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-monitor.yaml b/.github/workflows/gh-monitor.yaml index 53e80e30..37fab2f0 100644 --- a/.github/workflows/gh-monitor.yaml +++ b/.github/workflows/gh-monitor.yaml @@ -40,7 +40,7 @@ jobs: - name: Fetch changes run: | - git fetch origin ${{ env.BRANCH_NAME }} + git fetch origin gh-monitor if [[ "${{ env.IS_PR }}" == "true" ]]; then git fetch origin pull/${{ env.PR_NUMBER }}/head:pr-${{ env.PR_NUMBER }} else @@ -51,8 +51,8 @@ jobs: id: list_changed_files run: | if [[ "${{ env.IS_PR }}" == "true" ]]; then - CHANGED_FILES=$(git diff --name-only ${{ env.BRANCH_NAME }}...pr-${{ env.PR_NUMBER }}) - DIFF=$(git diff ${{ env.BRANCH_NAME }}...pr-${{ env.PR_NUMBER }}) + CHANGED_FILES=$(git diff --name-only gh-monitor...pr-${{ env.PR_NUMBER }}) + DIFF=$(git diff gh-monitor...pr-${{ env.PR_NUMBER }}) else PREVIOUS_COMMIT=$(git rev-list -n 1 HEAD^1) CHANGED_FILES=$(git diff --name-only ${PREVIOUS_COMMIT}...${GITHUB_SHA}) @@ -66,7 +66,7 @@ jobs: id: get_authors run: | if [[ "${{ env.IS_PR }}" == "true" ]]; then - AUTHORS=$(git log --format='%ae' ${{ env.BRANCH_NAME }}...pr-${{ env.PR_NUMBER }} | sort | uniq) + AUTHORS=$(git log --format='%ae' gh-monitor...pr-${{ env.PR_NUMBER }} | sort | uniq) else PREVIOUS_COMMIT=$(git rev-list -n 1 HEAD^1) AUTHORS=$(git log --format='%ae' ${PREVIOUS_COMMIT}...${GITHUB_SHA} | sort | uniq)