From 1d2ab3fddee678d3ae24d280400805d2a91f3c41 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 6 Mar 2021 12:29:56 -0800 Subject: [PATCH] Use token for remote --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4e3006b6..bb7a24f4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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