From cd867e11d05c629eacbffc53a89cdda81a63fe50 Mon Sep 17 00:00:00 2001 From: Nick Art <100365428+NicK4rT@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:01:30 -0500 Subject: [PATCH] Update release-pipeline.yml --- .github/workflows/release-pipeline.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index e747371..5b0193b 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -70,10 +70,13 @@ jobs: - name: Commit and Push Changes run: | + # Configure Git git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - # Add, commit, and push changes - git add software/release/ - git commit -m "Copy updated files to the release folder and update file_list.py" - git push origin main + # Check if there are changes to commit + git diff --exit-code || (git add software/release/ && git commit -m "Copy updated files to the release folder and update file_list.py") + + # Push the changes if there were any + git push origin main || echo "No changes to push" +