mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
Tinker tinker
This commit is contained in:
parent
4b2201fcd1
commit
fbe300afdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user