From 4257a6cc682386e506b6753a14ded4490b0cee6b Mon Sep 17 00:00:00 2001 From: DigiLive Date: Sun, 1 Jun 2025 12:57:05 +0200 Subject: [PATCH] Fix Webpack workflow The commit action fails if the new build is the same as the existing build. Now, Git checks for unchanged files first. --- .github/workflows/webpack.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml index 6c280af..cf85b75 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/webpack.yml @@ -74,5 +74,4 @@ jobs: git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" git remote set-url origin https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/DigiLive/mushroom-strategy.git git add dist - git commit -m "${{ env.CI_COMMIT_MESSAGE }}" - git push + git diff --quiet && git diff --staged --quiet || (git commit -m "${{ env.CI_COMMIT_MESSAGE }}" && git push)