From e74095be54ba924c4851fe8603b9bdfd0c02e233 Mon Sep 17 00:00:00 2001 From: fkwp Date: Thu, 11 Apr 2024 13:47:59 +0200 Subject: [PATCH] we dont need prdetails going forward (#2309) * use pull_request event rather than workflow_run * use default for enable-pull-request-comment and enable-commit-comment * we dont need prdetails going forward --- .github/workflows/netlify-pr.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 }}