setup-python/.github/workflows/licensed.yml
Alice King Tai Poon db9247a38e
Update licensed.yml
2022-06-05 16:48:35 +08:00

29 lines
686 B
YAML

name: Licensed
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-22.04
name: Check licenses
steps:
- uses: actions/checkout@main
- name: Set Node.js 18.x
uses: actions/setup-node@main
with:
node-version: 18.x
cache: npm
- run: npm ci
- name: Install licensed
run: |
cd $RUNNER_TEMP
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.4.4/licensed-3.4.4-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed
- run: licensed status