Skip to content

Commit 31565fb

Browse files
committed
add workflow to fetch spdx licenses
1 parent 502dc8e commit 31565fb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/fetch-licenses.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Fetch Licenses
2+
3+
on:
4+
workflow_dispatch: # Allows manual triggering of the workflow
5+
schedule:
6+
- cron: '0 0 * * *' # Runs at midnight ET
7+
push:
8+
branches:
9+
- elr/license-updates
10+
11+
jobs:
12+
fetch-licenses:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v2
18+
19+
- name: Checkout SPDX Repository
20+
uses: actions/checkout@v2
21+
with:
22+
repository: spdx/license-list-data
23+
path: spdx
24+
25+
- name: Copy Licenses
26+
run: |
27+
cp spdx/license-list-data/json/licenses.json cmd/licenses.json
28+
cp spdx/license-list-data/json/exceptions.json cmd/exceptions.json

0 commit comments

Comments
 (0)