fix: Change the way checking if the file changed #26

Manually merged
awiteb merged 1 commit from awiteb/fix-contributors-ci into master 2024-07-20 16:39:24 +02:00 AGit
Showing only changes of commit 196ea26e72 - Show all commits

View file

@ -19,7 +19,7 @@ jobs:
- name: Update Contributors
run: |
./bin/just contributors
if [ -n "$(git status --porcelain)" ]; then
if git diff --name-only | grep -q "^CONTRIBUTORS.md$"; then
git config user.name forgejo-actions
git config user.email forgejo-actions@noreply.localhost
git add CONTRIBUTORS.md