Update action.yml
This commit is contained in:
parent
1838b02049
commit
15230b93b5
1 changed files with 3 additions and 1 deletions
|
@ -94,6 +94,8 @@ runs:
|
||||||
DESTINATION_REPOSITORY=${BASH_REMATCH[5]}
|
DESTINATION_REPOSITORY=${BASH_REMATCH[5]}
|
||||||
DESTINATION_REPOSITORY=${DESTINATION_REPOSITORY//.git/ }
|
DESTINATION_REPOSITORY=${DESTINATION_REPOSITORY//.git/ }
|
||||||
REMOTE_URL=https://$DESTINATION_OWNER:${{ inputs.access_token }}@github.com/$DESTINATION_OWNER/$DESTINATION_REPOSITORY
|
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
|
fi
|
||||||
|
|
||||||
git add ${{ inputs.files }} -v
|
git add ${{ inputs.files }} -v
|
||||||
|
@ -104,7 +106,7 @@ runs:
|
||||||
git merge push-and-commit-action-${{ github.run_id }}-${{ github.job }}
|
git merge push-and-commit-action-${{ github.run_id }}-${{ github.job }}
|
||||||
git branch -d 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
|
else
|
||||||
echo "WARNING: No changes were detected. git commit push action aborted."
|
echo "WARNING: No changes were detected. git commit push action aborted."
|
||||||
|
|
Loading…
Add table
Reference in a new issue