10000 Add a licensed workflow · beehiveadapool/github-script@4db7989 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4db7989

Browse files
committed
Add a licensed workflow
1 parent a4a34d1 commit 4db7989

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/licensed.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Licensed
2+
3+
on:
4+
push: {branches: main}
5+
pull_request: {branches: main}
6+
repository_dispatch:
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
name: Check licenses
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/cache@v1
16+
with:
17+
path: ~/.npm
18+
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
19+
restore-keys: ${{runner.os}}-npm-
20+
- run: npm ci
21+
- name: Install licensed
22+
run: |-
23+
cd $RUNNER_TEMP
24+
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.9.2/licensed-2.9.2-linux-x64.tar.gz
25+
sudo tar -xzf licensed.tar.gz
26+
sudo mv licensed /usr/local/bin/licensed
27+
- run: licensed status

0 commit comments

Comments
 (0)
0