-
Notifications
You must be signed in to change notification settings - Fork 946
57 lines (55 loc) · 1.2 KB
/
gh_licence_checks.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: '[gh] pull request file license header checks'
on:
workflow_dispatch:
inputs:
commit-from:
description: 'specify the start of commit hash'
required: true
commit-to:
description: 'specify the end of commit hash'
required: true
pull_request:
branches:
- master
- main
paths:
- '**.tsx?'
- '**.jsx?'
- '**.vue'
- '**.ejs'
- '**.mjs'
- '**.es6'
- '**.css'
- '**.less'
- '**.scss'
- '**.hh?'
- '**.hpp'
- '**.h\\+\\+'
- '**.hxx'
- '**.cc?'
- '**.c\\+\\+'
- '**.cpp'
- '**.C'
- '**.cxx'
- '**.mm?'
- '**.swift'
- '**.cmake'
- '**.java'
- '**.txt'
- '**.sh'
- '**.yaml'
- '**.bat'
- '**.dart'
- "**.py"
jobs:
pull_request_license_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check License or Date from github PR files
uses: zoomchan-cxj/[email protected]
with:
config-path: .github/workflows/config/license-check.json
token: ${{ secrets.GITHUB_TOKEN }}
env:
FORCE_COLOR: 3