-
-
Notifications
You must be signed in to change notification settings - Fork 13
32 lines (28 loc) · 830 Bytes
/
pull_request_compl.yml
File metadata and controls
32 lines (28 loc) · 830 Bytes
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
name: PR Compliance
on: pull_request_target
jobs:
build:
runs-on: ${{ matrix.os }}
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/github-script@v6
with:
script: |
throw "Pull requests are no longer accepted for PRSS 1.x"
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Reject PR
if: failure()
uses: peter-evans/close-pull@v1
with:
pull-request-number: ${{github.event.number}}
comment: "Thank you for contribution, but we are no longer accepting pull requests for PRSS 1.x"
delete-branch: false