From 15230b93b5495eebdd0b6cfd2bd1aa923f95ad1b Mon Sep 17 00:00:00 2001 From: Guillaume Falourd Date: Thu, 6 Jan 2022 16:19:23 -0300 Subject: [PATCH] Update action.yml --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index eea8b70..14389e2 100644 --- a/action.yml +++ b/action.yml @@ -94,6 +94,8 @@ runs: DESTINATION_REPOSITORY=${BASH_REMATCH[5]} DESTINATION_REPOSITORY=${DESTINATION_REPOSITORY//.git/ } REMOTE_URL=https://$DESTINATION_OWNER:${{ inputs.access_token }}@github.com/$DESTINATION_OWNER/$DESTINATION_REPOSITORY + git remote set-url origin $REMOTE_URL + git fetch origin fi git add ${{ inputs.files }} -v @@ -104,7 +106,7 @@ runs: git merge push-and-commit-action-${{ github.run_id }}-${{ github.job }} git branch -d push-and-commit-action-${{ github.run_id }}-${{ github.job }} - git push "$REMOTE_URL" "$CURRENT_BRANCH:$TARGET_BRANCH" --follow-tags $FORCE $TAGS + git push origin "$CURRENT_BRANCH:$TARGET_BRANCH" --follow-tags $FORCE $TAGS else echo "WARNING: No changes were detected. git commit push action aborted."