File tree Expand file tree Collapse file tree 4 files changed +31
-61
lines changed
Expand file tree Collapse file tree 4 files changed +31
-61
lines changed Original file line number Diff line number Diff line change 1+ name : Licenses
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [master, develop]
7+ pull_request :
8+ branches : [master, develop]
9+
10+ jobs :
11+ licences :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout Repository
15+ uses : actions/checkout@v4
16+ - name : Setup Node
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 18
20+ - name : Install Dependencies
21+ run : npm install
22+ - name : Get Repository License
23+ id : license
24+ run : |
25+ license="${{ (github.event.repository.license.spdx_id) || (github.event.repository.licenses[0]) }}"
26+ echo "License detected: $license"
27+ echo "license=$license" >> $GITHUB_OUTPUT
28+ - name : Check Licenses
29+ uses : ONLYOFFICE/check-licenses@v1
30+ with :
31+ project_license : ${{ steps.license.outputs.license }}
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments