Add skip_dirty_check option

This commit is contained in:
Stefan Zweifel 2020-06-25 20:18:20 +02:00
parent 984a26d893
commit 4ebfe28af0
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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";