From bec53f08761d325f7f566149159d0dc0fb0de444 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Mon, 25 Oct 2021 18:03:12 +0300 Subject: [PATCH] use GITHUB_TOKEN --- .github/workflows/ci.yml | 4 ++-- resources/gitpublish.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92a631f10b..a6e5198510 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -280,7 +280,7 @@ jobs: - name: Deploy to `npm` branch run: npm run gitpublish:npm env: - GH_TOKEN: ${{ secrets.GH_NPM_BRANCH_PUBLISH_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} deploy-to-deno-branch: name: Deploy to `deno` branch @@ -316,4 +316,4 @@ jobs: - name: Deploy to `deno` branch run: npm run gitpublish:deno env: - GH_TOKEN: ${{ secrets.GH_NPM_BRANCH_PUBLISH_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/resources/gitpublish.sh b/resources/gitpublish.sh index c88597fc86..2485143478 100755 --- a/resources/gitpublish.sh +++ b/resources/gitpublish.sh @@ -35,7 +35,7 @@ fi; # Create empty directory rm -rf $BRANCH -git clone -b $BRANCH -- "https://${GH_TOKEN}@github.com/graphql/graphql-js.git" $BRANCH +git clone -b $BRANCH -- "https://${GITHUB_ACTOR}:${GH_TOKEN}@github.com/graphql/graphql-js.git" $BRANCH # Remove existing files first rm -rf $BRANCH/**/*