mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
d6e5741682
This was quite useless (very flaky) and furthermore also slow
36 lines
975 B
YAML
36 lines
975 B
YAML
name: PR CI Comment
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: ['build-and-test']
|
|
types: [requested, completed]
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
comment:
|
|
name: Comment on PR
|
|
if: ${{ github.event.workflow_run.event == 'pull_request' && github.repository == 'vercel/next.js' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Download PR metadata
|
|
continue-on-error: true
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: pr-ci-metadata
|
|
path: pr-ci-metadata
|
|
run-id: ${{ github.event.workflow_run.id }}
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Comment on PR
|
|
run: node scripts/pr-ci-comment.mjs
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|