mirror of
https://github.com/DigiLive/mushroom-strategy.git
synced 2025-08-01 02:44:27 +02:00
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:
3
.github/workflows/webpack.yml
vendored
3
.github/workflows/webpack.yml
vendored
@@ -74,5 +74,4 @@ jobs:
|
|||||||
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
|
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 remote set-url origin https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/DigiLive/mushroom-strategy.git
|
||||||
git add dist
|
git add dist
|
||||||
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
|
git diff --quiet && git diff --staged --quiet || (git commit -m "${{ env.CI_COMMIT_MESSAGE }}" && git push)
|
||||||
git push
|
|
||||||
|
Reference in New Issue
Block a user