From b3b00ebd772b4d21265de54caa7ea62366152972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Mart=C3=ADnez=20Gonz=C3=A1lez?= Date: Sun, 21 Apr 2024 02:55:23 -0400 Subject: [PATCH] Fix workflow error --- .github/workflows/repo_data.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/repo_data.yaml b/.github/workflows/repo_data.yaml index c5dba4f..322793e 100644 --- a/.github/workflows/repo_data.yaml +++ b/.github/workflows/repo_data.yaml @@ -41,8 +41,10 @@ jobs: # Add the repodata.txt file git add slater/db/repodata.txt - # Commit the changes - git commit -m "Update repodata.txt" - - # Push the changes to the repository - git push origin main + if [[ -n "$(git diff --staged)" ]]; then + # Commit the changes + git commit -m "Update repodata.txt" + + # Push the changes to the repository + git push origin main + fi