diff --git a/.github/workflows/pr-merged.yml b/.github/workflows/pr-merged.yml index f0d31127..52b3bb80 100644 --- a/.github/workflows/pr-merged.yml +++ b/.github/workflows/pr-merged.yml @@ -1,7 +1,7 @@ name: PR Merged on: - pull_request: + pull_request_target: types: [closed] branches: - next @@ -21,6 +21,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Install pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/pr-updated.yml b/.github/workflows/pr-updated.yml index d138acc5..096b894b 100644 --- a/.github/workflows/pr-updated.yml +++ b/.github/workflows/pr-updated.yml @@ -1,7 +1,7 @@ name: PR Updated on: - pull_request: + pull_request_target: branches: - next @@ -21,6 +21,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: "${{ github.event.pull_request.head.sha }}" - name: Install pnpm uses: pnpm/action-setup@v4