From 754082016a81d99618ca71801a6a0335aeb2eb28 Mon Sep 17 00:00:00 2001 From: Guillaume Falourd Date: Fri, 27 Jan 2023 13:52:09 -0300 Subject: [PATCH] Update action.yml --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 50816ea..bc0f23f 100644 --- a/action.yml +++ b/action.yml @@ -85,7 +85,7 @@ runs: git config --local user.email "${{ inputs.email }}" git config --local user.name "${{ inputs.name }}" - git fetch + git fetch origin if [[ `git status --porcelain` ]]; then git add ${{ inputs.files }} -v @@ -96,7 +96,7 @@ runs: git merge git-commit-push-action-${{ github.run_id }}-${{ github.job }} git branch -d git-commit-push-action-${{ github.run_id }}-${{ github.job }} - git push "${{ inputs.remote_repository }}" "HEAD:$TARGET_BRANCH" --follow-tags $FORCE $TAGS + git push "${{ inputs.remote_repository }}" "$CURRENT_BRANCH:$TARGET_BRANCH" --follow-tags $FORCE $TAGS else echo "WARNING: No changes were detected. git commit push action aborted." fi