Update licensed.yml

This commit is contained in:
Matthieu MOREL 2021-08-03 07:33:15 +02:00 committed by GitHub
parent 99ce3912f0
commit a4b8dab85f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,26 @@
name: Licensed name: Licensed
on: on:
push: push:
branches: branches:
- main - main
pull_request: tags-ignore:
branches: - '**'
- main
jobs: jobs:
test: licenses:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Check licenses name: Update licenses
steps: steps:
# if using actions/checkout at major version 2 or greater,
# please set fetch-depth to a high number, or to 0.
# running this action can require access to more than just the latest commit on a branch
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: npm ci with:
- name: Install licensed fetch-depth: 0
run: | - uses: jonabc/setup-licensed@v1
cd $RUNNER_TEMP with:
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz version: 3.x
sudo tar -xzf licensed.tar.gz - run: npm install # install your projects dependencies in local environment
sudo mv licensed /usr/local/bin/licensed - id: licensed
- run: licensed status uses: jonabc/licensed-ci@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}