name: Deploy PR to Netlify on: workflow_run: workflows: ["Build pull request"] types: [completed] jobs: deploy-pull-request: name: 'Deploy pull request' runs-on: ubuntu-latest permissions: contents: read pull-requests: write if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Download pr number uses: dawidd6/action-download-artifact@46b4ae883bf0726f5949d025d31cb62c7a5ac70c with: workflow: ${{ github.event.workflow.id }} run_id: ${{ github.event.workflow_run.id }} name: pr - name: Output pr number id: pr run: echo "::set-output name=id::$(