mirror of
https://github.com/actions/checkout.git
synced 2024-11-24 23:51:41 +08:00
preventing error while committing with no changes
This commit is contained in:
parent
5a4ac9002d
commit
48439d9490
@ -228,7 +228,7 @@ jobs:
|
|||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
git add .
|
git add .
|
||||||
git commit -m "generated"
|
git diff-index --quiet HEAD || git commit -m "generated"
|
||||||
git push
|
git push
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user