From 820add76b5b272aa01ff58913e11b07e081b65ee Mon Sep 17 00:00:00 2001 From: mafyuh Date: Sun, 9 Jun 2024 19:33:51 +0000 Subject: [PATCH] Update .forgejo/workflows/CD.yml --- .forgejo/workflows/CD.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/CD.yml b/.forgejo/workflows/CD.yml index 138b62b..7304bbc 100644 --- a/.forgejo/workflows/CD.yml +++ b/.forgejo/workflows/CD.yml @@ -14,7 +14,7 @@ jobs: - name: Detect modified folders id: detect-changes run: | - folders=$(git diff-tree --no-commit-id --name-only -r "${{ github.event.pull_request.merge_commit_sha }}" | cut -d/ -f1 | sort | uniq) + folders=$(git diff-tree --no-commit-id --name-only -r HEAD^..HEAD | cut -d/ -f1 | sort | uniq) echo "Modified folders: $folders" echo "::set-output name=folders::$folders"