-
-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (39 loc) · 1004 Bytes
/
licenses.yaml
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
name: License report 🗃
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
workflow_dispatch:
workflow_call:
inputs:
package-subdirectory:
description: Subdirectory in the repository, where the R package is located.
required: false
type: string
default: "."
concurrency:
group: licenses-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
licenses:
runs-on: ubuntu-latest
name: Check 🚩
if: >
!contains(github.event.commits[0].message, '[skip licenses]')
&& github.event.pull_request.draft == false
steps:
- name: Checkout repo 🛎
uses: actions/checkout@v4
- name: Generate license report 📜
uses: insightsengineering/r-license-report@v1
with:
regex: "^AGPL.*"
path: ${{ inputs.package-subdirectory }}