From f3700537e772f2226c7799f7bd4e12f6018b5ee1 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Thu, 9 Apr 2020 20:07:31 +0200 Subject: [PATCH] Checkout to a local temp branch --- entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a7714ca..4b65156 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -45,10 +45,13 @@ _setup_git ( ) { } _switch_to_branch() { - echo "INPUT_BRANCH value: $INPUT_BRANCH"; + # echo "INPUT_BRANCH value: $INPUT_BRANCH"; # Switch to branch from current Workflow run - git checkout $INPUT_BRANCH + # git checkout $INPUT_BRANCH + + git checkout -b git-auto-commit-temp-branch + } _add_files() {