Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / .github / workflows / pr-receive.yml
blob13f1a883cf8ff67d8185074bf093d1b502771a4b
1 # See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
3 name: PR Receive
4 on:
5   pull_request_target:
6     types:
7       - opened
8       - reopened
9       - ready_for_review
10       - synchronize
12 permissions:
13   contents: read
15 jobs:
16   pr-target:
17     runs-on: ubuntu-latest
18     # Ignore PRs with more than 10 commits.  Pull requests with a lot of
19     # commits tend to be accidents usually when someone made a mistake while trying
20     # to rebase.  We want to ignore these pull requests to avoid excessive
21     # notifications.
22     if: github.repository == 'llvm/llvm-project' &&
23         github.event.pull_request.draft == false &&
24         github.event.pull_request.commits < 10
25     steps:
26       - name: Store PR Information
27         run: |
28           mkdir -p ./pr
29           echo ${{ github.event.number }} > ./pr/NR
31       - uses: actions/upload-artifact@v3
32         with:
33           name: pr
34           path: pr/