Skip to content

Commit c9eb213

Browse files
Merge pull request #84 from stefanzweifel/feature/skip-dirty-check
Add a "Skip Dirty Check" Option
2 parents 984a26d + c8ded28 commit c9eb213

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ inputs:
4343
description: Push options (eg. --force)
4444
required: false
4545
default: ''
46+
skip_dirty_check:
47+
description: Skip the check if the git repository is dirty and always try to create a commit.
48+
required: false
49+
default: false
4650

4751
outputs:
4852
changes_detected:

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu
55
_main() {
66
_switch_to_repository
77

8-
if _git_is_dirty; then
8+
if _git_is_dirty || "$INPUT_SKIP_DIRTY_CHECK"; then
99

1010
echo "::set-output name=changes_detected::true";
1111

0 commit comments

Comments
 (0)