From 15565127dae5898cd7e55554a9c0f17a43f8dbdf Mon Sep 17 00:00:00 2001 From: kiner-tang <1127031143@qq.com> Date: Sun, 31 Dec 2023 11:03:09 +0800 Subject: [PATCH] chore: changeset check (#432) --- .github/workflows/changeset-check.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changeset-check.yml b/.github/workflows/changeset-check.yml index 1d7264f5c..a6bc1c96e 100644 --- a/.github/workflows/changeset-check.yml +++ b/.github/workflows/changeset-check.yml @@ -30,11 +30,10 @@ jobs: id: check_changeset env: ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} + GH_TOKEN: ${{ github.token }} run: | # 拉取 pr 源分支代码 - git fetch origin ${{ github.event.pull_request.head.ref }}:${{ github.event.pull_request.head.ref }} - git checkout ${{ github.event.pull_request.head.ref }} - git reset --hard ${{ github.event.pull_request.head.sha }} + gh pr checkout ${{ github.event.pull_request.number }} ls -al .changeset files=$ALL_CHANGED_FILES echo "File list: $files"