From d5fb11fa7e8750fcbd1e01eac700db430c5bbccd Mon Sep 17 00:00:00 2001 From: Yingtao Liu Date: Mon, 22 Jan 2024 13:55:24 -0800 Subject: [PATCH] add env --- .github/workflows/pr_to_gh_page_repo.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr_to_gh_page_repo.yml b/.github/workflows/pr_to_gh_page_repo.yml index be33bee39..640f2c485 100644 --- a/.github/workflows/pr_to_gh_page_repo.yml +++ b/.github/workflows/pr_to_gh_page_repo.yml @@ -57,15 +57,10 @@ jobs: git commit -m "update playground" git push origin $BRANCH_NAME - # Store the PAT in a file that can be accessed by the - # GitHub CLI. - echo "${{ secrets.ACCESS_TOKEN }}" > token.txt - - # Authorize GitHub CLI for the current repository and - # create a pull-requests containing the updates. - gh auth login --with-token < token.txt gh pr create \ --body "Port From ${{ github.head_ref }}. Commit: ${{ github.sha }}" \ --title "Update Playground" \ --head "$BRANCH_NAME" \ - --base "main" \ No newline at end of file + --base "main" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file