Skip to content

Commit

Permalink
Fix triggers in licensed.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brcrista committed Aug 10, 2021
1 parent a7abfdf commit 5ed343d
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/licensed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,23 @@ name: Licensed

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
repository_dispatch:
workflow_dispatch:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
restore-keys: ${{runner.os}}-npm-
- run: npm ci
- name: Install licensed
run: |-
run: |
cd $RUNNER_TEMP
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.9.2/licensed-2.9.2-linux-x64.tar.gz
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed
- run: licensed status

0 comments on commit 5ed343d

Please sign in to comment.