From e1d23f8d07e132d0debf0f8fe655d4f5b160894e Mon Sep 17 00:00:00 2001 From: kagahd Date: Mon, 14 Oct 2024 14:11:49 +0200 Subject: [PATCH] condition --- .github/workflows/build-jar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-jar.yml b/.github/workflows/build-jar.yml index f366c30..6dff392 100644 --- a/.github/workflows/build-jar.yml +++ b/.github/workflows/build-jar.yml @@ -40,6 +40,7 @@ jobs: git config --local user.email "github-actions@idealo.de" git config --local user.name "github-actions[bot]" + git pull origin ${{ github.head_ref }} --rebase || echo "No changes to pull" git add latest-version/mongodb-performance-test.jar # Check if there are staged changes @@ -48,7 +49,6 @@ jobs: echo "The [latest-version/mongodb-performance-test.jar](https://github.com/idealo/mongodb-performance-test/tree/master/latest-version/mongodb-performance-test.jar) is unchanged" >> $GITHUB_STEP_SUMMARY else git commit -m "Add latest version ($VERSION) of mongodb-performance-test.jar" - git pull origin ${{ github.head_ref }} --rebase git push origin HEAD:${{ github.head_ref }} # Delete the local tag if it exists