From 37015cc2da2f37e9501e5bec10690d39225be97c Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Fri, 13 Sep 2024 22:31:01 -0400 Subject: [PATCH] add gh token --- .github/workflows/preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index ea1b07fede..7548bd40c1 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -27,6 +27,8 @@ jobs: - name: Get PR number id: get-pr + env: + GH_TOKEN: ${{ github.token }} run: | PR_NUMBER=$(gh pr list --repo "${{ github.repository }}" --search "${{ github.sha }}" --json number --jq '.[0].number') echo "::set-output name=pr_number::$PR_NUMBER"