Update .forgejo/workflows/yamllint.yml

This commit is contained in:
Matt Reeves 2024-12-12 23:38:09 -05:00
parent a98092aea6
commit 61f1a9eb4f

View file

@ -1,5 +1,3 @@
name: Lint on PR
on:
pull_request:
types: [opened, synchronize, reopened]
@ -17,7 +15,7 @@ jobs:
- name: Get modified YAML files
id: get_changed_files
run: |
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E '\.(yml)$' || true)
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD | grep -E '\.(yml)$' || true)
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
- name: Run yamllint on modified files