Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4db7989

Browse filesBrowse files
committed
Add a licensed workflow
1 parent a4a34d1 commit 4db7989
Copy full SHA for 4db7989

File tree

Expand file treeCollapse file tree

1 file changed

+27
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+27
-0
lines changed

‎.github/workflows/licensed.yml

Copy file name to clipboard
+27Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.