Permalink
Cannot retrieve contributors at this time
50 lines (47 sloc)
1.66 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
labeler/.github/workflows/update_and_check_licenses.yml
View runs Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Licenses | |
on: | |
push: | |
branches: [main] | |
paths: [package.json, package-lock.json] | |
pull_request: | |
branches: [main] | |
paths: [package.json, package-lock.json] | |
workflow_dispatch: | |
jobs: | |
# Updates our cache of license files in response to changes to our dependencies | |
# declared in package-lock.json. Automatically commits the changes and pushes | |
# them to your branch. NB `check_license_status` should always run *after* this | |
# | |
# see https://github.com/actions/labeler/pull/155 for more context | |
update_licenses: | |
runs-on: ubuntu-latest | |
name: Update Licenses | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jonabc/setup-licensed@v1 | |
with: | |
version: '3.x' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm install --production | |
- uses: jonabc/licensed-ci@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# Fails if any of our dependencies have licenses that our incompatible with our | |
# requirements (see .licensed.yml) OR if any of our dependencies have been | |
# upgraded to a new version without us having updated their corresponding | |
# license metadata file in .licenses/ | |
# | |
# see https://github.com/actions/labeler/pull/91 for more context | |
check_licenses: | |
needs: update_licenses | |
if: always() # always run after we update the license cache. if it failed, we will probably just fail as well | |
runs-on: ubuntu-latest | |
name: Check Licenses | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: jonabc/setup-licensed@v1.0.2 | |
with: | |
version: '3.x' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm install | |
- run: licensed status |