From 2da2e62b3b1e82b4e8d597ac476bca71dec9868c Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Sat, 20 Jul 2024 17:37:31 +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