mirror of
https://github.com/actions/upload-artifact.git
synced 2025-04-19 15:04:45 +02:00
Update licensed.yml
This commit is contained in:
parent
99ce3912f0
commit
a4b8dab85f
1 changed files with 18 additions and 16 deletions
34
.github/workflows/licensed.yml
vendored
34
.github/workflows/licensed.yml
vendored
|
@ -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:
|
||||||
- uses: actions/checkout@v2
|
# if using actions/checkout at major version 2 or greater,
|
||||||
- run: npm ci
|
# please set fetch-depth to a high number, or to 0.
|
||||||
- name: Install licensed
|
# running this action can require access to more than just the latest commit on a branch
|
||||||
run: |
|
- uses: actions/checkout@v2
|
||||||
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
|
fetch-depth: 0
|
||||||
sudo tar -xzf licensed.tar.gz
|
- uses: jonabc/setup-licensed@v1
|
||||||
sudo mv licensed /usr/local/bin/licensed
|
with:
|
||||||
- run: licensed status
|
version: 3.x
|
||||||
|
- run: npm install # install your projects dependencies in local environment
|
||||||
|
- id: licensed
|
||||||
|
uses: jonabc/licensed-ci@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue