From fbe300afdfecf4495bf1e80911192bec96f73c08 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 31 Aug 2019 18:07:25 +0200 Subject: [PATCH] Tinker tinker --- entrypoint.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 33468e7..1b27752 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,7 +35,7 @@ EOF git config user.name "$GITHUB_ACTOR" # Push to the current branch if PUSH_BRANCH hasn't been overriden - : ${PUSH_BRANCH:=`echo "$GITHUB_REF" | awk -F / '{ print $3 }' `} + # : ${PUSH_BRANCH:=`echo "$GITHUB_REF" | awk -F / '{ print $3 }' `} } @@ -45,10 +45,12 @@ if ! git diff --quiet then git_setup - git checkout $PUSH_BRANCH + git checkout "${GITHUB_REF:11}" + # git checkout $PUSH_BRANCH git add . git commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR_NAME <$INPUT_COMMIT_AUTHOR_EMAIL>" || echo "No changes found. Nothing to commit." - git push --set-upstream origin $PUSH_BRANCH + git push --set-upstream origin "${GITHUB_REF:11}" + # git push --set-upstream origin $PUSH_BRANCH else echo "Working tree clean. Nothing to commit." fi