From b3b905f0699bef9d6cff3c79e053bfb8f78902a5 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 1 Jul 2024 16:49:41 -0400 Subject: [PATCH] update workflow --- .github/workflows/validate-pull.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-pull.yml b/.github/workflows/validate-pull.yml index da6c19a93..de0a854b1 100644 --- a/.github/workflows/validate-pull.yml +++ b/.github/workflows/validate-pull.yml @@ -28,13 +28,20 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 with: - fetch-depth: 2 + fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Get changes id: get-changes - run: echo "files=$(git diff --name-only HEAD^ | xargs)" >> $GITHUB_OUTPUT + run: | + git remote add -f upstream https://github.com/Kometa-Team/Kometa.git + git remote update + if [[ ${{ github.event.action }} == "labeled" ]]; then + echo "files=$(git diff --name-only upstream/nightly HEAD | xargs)" >> $GITHUB_OUTPUT + else + echo "files=$(git diff --name-only HEAD^ | xargs)" >> $GITHUB_OUTPUT + fi - name: List changed files id: list-changes