Update .forgejo/workflows/yamllint.yml

This commit is contained in:
Matt Reeves 2024-12-12 23:45:48 -05:00
parent 557c08998a
commit e59688cfd4

View file

@ -18,7 +18,7 @@ jobs:
- name: Get modified YAML files - name: Get modified YAML files
id: get_changed_files id: get_changed_files
run: | 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) CHANGED_FILES=$(git diff --name-only $BASE_BRANCH HEAD | grep -E '\.(yml)$' || true)
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV