mirror of
https://github.com/actions/add-to-project.git
synced 2026-01-16 00:35:32 +08:00
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
27 lines
582 B
YAML
27 lines
582 B
YAML
permissions:
|
|
contents: read
|
|
name: Licensed
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
name: Check licenses
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: npm ci
|
|
- name: Install licensed
|
|
run: |
|
|
cd $RUNNER_TEMP
|
|
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.6.0/licensed-3.6.0-linux-x64.tar.gz
|
|
sudo tar -xzf licensed.tar.gz
|
|
sudo mv licensed /usr/local/bin/licensed
|
|
- run: licensed status
|