forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (30 loc) · 933 Bytes
/
pr-receive.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
name: PR Receive
on:
pull_request_target:
types:
- opened
- reopened
- ready_for_review
- synchronize
permissions:
contents: read
jobs:
pr-target:
runs-on: ubuntu-latest
# Ignore PRs with more than 10 commits. Pull requests with a lot of
# commits tend to be accidents usually when someone made a mistake while trying
# to rebase. We want to ignore these pull requests to avoid excessive
# notifications.
if: github.repository == 'llvm/llvm-project' &&
github.event.pull_request.draft == false &&
github.event.pull_request.commits < 10
steps:
- name: Store PR Information
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/NR
- uses: actions/upload-artifact@v3
with:
name: pr
path: pr/