mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
Try to fix checkout command
This commit is contained in:
parent
80f825a9bc
commit
ea88bd7cde
@ -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 .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user