Merge pull request #84 from stefanzweifel/feature/skip-dirty-check
Add a "Skip Dirty Check" Option
This commit is contained in:
commit
c9eb2132b2
@ -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 || "$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