diff --git a/.github/workflows/netlify-pr.yaml b/.github/workflows/netlify-pr.yaml index dbeb25fb..f5fcf2b7 100644 --- a/.github/workflows/netlify-pr.yaml +++ b/.github/workflows/netlify-pr.yaml @@ -28,17 +28,11 @@ jobs: step: start token: ${{ secrets.GITHUB_TOKEN }} env: Netlify - ref: ${{ github.ref || github.head_ref }} + ref: ${{ github.event.pull_request.head.sha || github.ref || github.head_ref }} desc: | Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts. - - id: prdetails - uses: matrix-org/pr-details-action@v1.3 - with: - owner: ${{ github.event.pull_request.head.repo.owner.login }} - branch: ${{ github.event.pull_request.head.ref }} - - name: 📥 Download artifact uses: actions/download-artifact@v4 with: @@ -58,7 +52,7 @@ jobs: with: publish-dir: webapp deploy-message: "Deploy from GitHub Actions" - alias: pr${{ steps.prdetails.outputs.pr_id }} + alias: pr${{ github.event.pull_request.number }} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}