Skip to content

Ignore Working Tree Clean #25676

Answered by airtower-luna
Snayff asked this question in Actions
Discussion options

You must be logged in to vote

You could check if there are changes using git diff --exit-code and make the commit only if there are any, e.g.:

git diff --exit-code || git commit -am "ci lint and test"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants