mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-12-06 02:09:04 +00:00
Add changes_detected output
This commit is contained in:
parent
404d2015f4
commit
33e8fd937f
@ -7,6 +7,8 @@ _main() {
|
||||
|
||||
if _git_is_dirty; then
|
||||
|
||||
echo \"::set-output name=changes_detected::true\"
|
||||
|
||||
_setup_git
|
||||
|
||||
_switch_to_branch
|
||||
@ -17,6 +19,9 @@ _main() {
|
||||
|
||||
_push_to_github
|
||||
else
|
||||
|
||||
echo \"::set-output name=changes_detected::false\"
|
||||
|
||||
echo "Working tree clean. Nothing to commit."
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user