forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 877 Bytes
/
pr-linter.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
35
36
37
# https://octokit.github.io/rest.js
# https://github.com/actions/toolkit/blob/master/packages/github/src/context.ts
name: PR Linter
on:
# Necessary to have sufficient permissions to write to the PR
pull_request_target:
types:
- labeled
- unlabeled
- edited
- opened
- synchronize
- reopened
status:
jobs:
validate-pr:
permissions:
contents: read
pull-requests: write
statuses: read
issues: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install & Build prlint
run: yarn install --frozen-lockfile && cd tools/@aws-cdk/prlint && yarn build+test
- name: Validate
uses: ./tools/@aws-cdk/prlint
env:
GITHUB_TOKEN: ${{ secrets.PROJEN_GITHUB_TOKEN }}
REPO_ROOT: ${{ github.workspace }}