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.
This commit is contained in:
DigiLive
2025-06-01 12:57:05 +02:00
parent 561e047736
commit 4257a6cc68

View File

@ -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)