From 196ea26e72ca913324ecf78a7037502c545974f7 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sat, 20 Jul 2024 17:36:21 +0300 Subject: [PATCH] fix: Change the way checking if the file changed Signed-off-by: Awiteb --- .forgejo/workflows/contributors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/contributors.yml b/.forgejo/workflows/contributors.yml index ba64ea7..5e397a5 100644 --- a/.forgejo/workflows/contributors.yml +++ b/.forgejo/workflows/contributors.yml @@ -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