-
Notifications
You must be signed in to change notification settings - Fork 1k
40 lines (34 loc) · 1.21 KB
/
checklist-checker.yml
File metadata and controls
40 lines (34 loc) · 1.21 KB
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
38
39
40
name: License Agreement Check
on:
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]
issue_comment:
types: [created, edited, deleted]
permissions:
contents: read
pull-requests: read
issues: write
statuses: write
concurrency:
group: license-agreement-${{ github.event.pull_request.number || github.event.issue.number }}
# Let an in-flight run finish so it can post its final commit status. With
# `cancel-in-progress: true` a synchronize event would cancel the prior run
# mid-flight, leaving a CANCELLED check on the PR rollup even for team-member
# PRs that the script would otherwise mark `success`.
cancel-in-progress: false
jobs:
license-agreement:
if: github.event_name != 'issue_comment' || github.event.issue.pull_request
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Check license agreement
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node .github/scripts/license-agreement-check.mjs