Use token for remote

This commit is contained in:
Micah Jerome Ellison 2021-03-06 12:29:56 -08:00
parent c5b99f4357
commit 1d2ab3fdde

View file

@ -170,7 +170,8 @@ jobs:
echo "$(PWD)"
BRANCH_NAME="jrnl-${JRNL_VERSION}--${RANDOM}"
git remote rename origin upstream
git remote add origin "https://github.com/${BOT_REPO}.git"
git remote add origin "https://${{ secrets.JRNL_BOT_NAME }}:${{ secrets.JRNL_BOT_TOKEN }}@github.com/${BOT_REPO}.git"
git fetch upstream
git fetch origin
git checkout -b $BRANCH_NAME