From e59688cfd423d02596b95508cb9a672d55352dbf Mon Sep 17 00:00:00 2001 From: mafyuh Date: Thu, 12 Dec 2024 23:45:48 -0500 Subject: [PATCH] Update .forgejo/workflows/yamllint.yml --- .forgejo/workflows/yamllint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/yamllint.yml b/.forgejo/workflows/yamllint.yml index 7d418bf..5fd7763 100644 --- a/.forgejo/workflows/yamllint.yml +++ b/.forgejo/workflows/yamllint.yml @@ -18,7 +18,7 @@ jobs: - name: Get modified YAML files id: get_changed_files run: | - BASE_BRANCH=$(git merge-base HEAD origin/${{ github.event.pull_request.base.ref }}) + BASE_BRANCH=$(git rev-parse --abbrev-ref origin/HEAD) CHANGED_FILES=$(git diff --name-only $BASE_BRANCH HEAD | grep -E '\.(yml)$' || true) echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV