Skip to content

Update mapping from ScanCode LicenseDB data #40

Update mapping from ScanCode LicenseDB data

Update mapping from ScanCode LicenseDB data #40

name: Update mapping from ScanCode LicenseDB data
on:
schedule:
- cron: '43 5 * * 0'
workflow_dispatch: # This allows for manual triggering of the workflow
permissions:
contents: write
pull-requests: write
jobs:
update-database:
name: Update mapping
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
- name: Fetch ScanCode LicenseDB
run: |
curl -o scancode-licensedb.json https://scancode-licensedb.aboutcode.org/index.json
- name: Transform JSON and Update scancodeMap.js
run: |
node ./scripts/transform-scancode-licensedb.js
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
add-paths: lib/scancodeMap.js
commit-message: Update ScanCode license mapping
branch: update-scancode-licensedb
title: Update license mapping with latest ScanCode LicenseDB data
body: |
This pull request updates the license mapping with the latest ScanCode LicenseDB data.
For more information, see https://github.com/nexB/scancode-licensedb