Merge pull request #84 from stefanzweifel/feature/skip-dirty-check

Add a "Skip Dirty Check" Option
This commit is contained in:
Stefan Zweifel
2020-06-26 21:02:58 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -43,6 +43,10 @@ inputs:
description: Push options (eg. --force)
required: false
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:
changes_detected:

View File

@@ -5,7 +5,7 @@ set -eu
_main() {
_switch_to_repository
if _git_is_dirty; then
if _git_is_dirty || "$INPUT_SKIP_DIRTY_CHECK"; then
echo "::set-output name=changes_detected::true";