feat(ci): parse if there are any changes
This commit is contained in:
parent
c98e53a984
commit
e1557f51ce
8
.github/workflows/publish-dist.yml
vendored
8
.github/workflows/publish-dist.yml
vendored
@ -329,7 +329,9 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# create commit
|
# create commit
|
||||||
commit_msg="Automated hash update from ${{ github.ref }}"
|
if ! git diff --cached --exit-code; then
|
||||||
git commit -m "$commit_msg"
|
commit_msg="Automated hash update from ${{ github.ref }}"
|
||||||
git push -u origin "main"
|
git commit -m "$commit_msg"
|
||||||
|
git push -u origin "main"
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user