From ea88bd7cdeaa37ebb2c2b82483688f17cfd6408c Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Fri, 20 Sep 2019 09:42:26 +0200 Subject: [PATCH] Try to fix checkout command --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0f19ac9..3adb9bd 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -25,8 +25,10 @@ if ! git diff --quiet then git_setup + : ${PUSH_BRANCH:=`echo "$GITHUB_HEAD_REF" | awk -F / '{ print $3 }' `} + # Switch to branch from current Workflow run - git checkout "$GITHUB_REF" | awk -F / '{ print $3 }' + git checkout $PUSH_BRANCH git add .