Add skip_dirty_check option
This commit is contained in:
parent
984a26d893
commit
4ebfe28af0
@ -43,6 +43,10 @@ inputs:
|
|||||||
description: Push options (eg. --force)
|
description: Push options (eg. --force)
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
skip_dirty_check:
|
||||||
|
description: Skip the check if the git repository is dirty and always try to create a commit.
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
changes_detected:
|
changes_detected:
|
||||||
|
@ -5,7 +5,7 @@ set -eu
|
|||||||
_main() {
|
_main() {
|
||||||
_switch_to_repository
|
_switch_to_repository
|
||||||
|
|
||||||
if _git_is_dirty; then
|
if _git_is_dirty || [ -n "$INPUT_SKIP_DIRTY_CHECK" ]; then
|
||||||
|
|
||||||
echo "::set-output name=changes_detected::true";
|
echo "::set-output name=changes_detected::true";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user