From ccbc49dcb69959db179205e1650643cfb4f7f062 Mon Sep 17 00:00:00 2001 From: Wenzhao Hu <12122021+wzhudev@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:12:37 +0800 Subject: [PATCH] fix: should checked out commented pull request --- .github/workflows/update-snapshots-on-comment.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update-snapshots-on-comment.yml b/.github/workflows/update-snapshots-on-comment.yml index fb98c6114c94..b6677d5823e4 100644 --- a/.github/workflows/update-snapshots-on-comment.yml +++ b/.github/workflows/update-snapshots-on-comment.yml @@ -14,6 +14,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: ${{ github.event.issue.pull_request.head.ref }} + fetch-depth: 0 - name: Setup Node.js uses: ./.github/actions/setup-node