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

View file

@ -19,7 +19,7 @@ jobs:
- name: Update Contributors - name: Update Contributors
run: | run: |
./bin/just contributors ./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.name forgejo-actions
git config user.email forgejo-actions@noreply.localhost git config user.email forgejo-actions@noreply.localhost
git add CONTRIBUTORS.md git add CONTRIBUTORS.md