diff --git a/action.yml b/action.yml
index 254503a..473689c 100644
--- a/action.yml
+++ b/action.yml
@@ -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:
diff --git a/entrypoint.sh b/entrypoint.sh
index aeab256..1c1b6f5 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -5,7 +5,7 @@ set -eu
 _main() {
     _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";