diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8c407ce8..e4d64b66 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -52,6 +52,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + fetch-depth: 0 + + - name: Print pull request head information + run: | + echo "Pull Request SHA: ${{ github.event.pull_request.head.sha }}" + echo "Pull Request Ref: ${{ github.event.pull_request.head.ref }}" # Run a build step here - name: Setup Node.js environment