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