From b0a4f0b7e4a90a55e685d7ffba5abfb7bbfe0500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Tue, 13 Feb 2024 15:19:25 +0100 Subject: [PATCH 1/3] Update create-pull-request Action --- .github/workflows/update-scancode-licensedb.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-scancode-licensedb.yml b/.github/workflows/update-scancode-licensedb.yml index fa20bb8df..5a4a5bf27 100644 --- a/.github/workflows/update-scancode-licensedb.yml +++ b/.github/workflows/update-scancode-licensedb.yml @@ -30,7 +30,7 @@ jobs: node ./scripts/transform-scancode-licensedb.js - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6.0.0 with: add-paths: lib/scancodeMap.js commit-message: Update ScanCode license mapping From c16408c64702024202ffefbaa565e8fffb9adfa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Tue, 13 Feb 2024 15:21:59 +0100 Subject: [PATCH 2/3] Add newline at end of generated file --- scripts/transform-scancode-licensedb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/transform-scancode-licensedb.js b/scripts/transform-scancode-licensedb.js index 25d6162ef..d807d9c40 100644 --- a/scripts/transform-scancode-licensedb.js +++ b/scripts/transform-scancode-licensedb.js @@ -51,5 +51,6 @@ function generateScancodeMapContent(data) { // See licenses in https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/ module.exports = new Map([ ${content.join(',\n')} -]);` +]); +` } From 440befbc3d6188364018a843982162c2fbf9b120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Tue, 13 Feb 2024 15:24:09 +0100 Subject: [PATCH 3/3] Remove semicolon in generated file to not cause lint error --- scripts/transform-scancode-licensedb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/transform-scancode-licensedb.js b/scripts/transform-scancode-licensedb.js index d807d9c40..5a87d49b7 100644 --- a/scripts/transform-scancode-licensedb.js +++ b/scripts/transform-scancode-licensedb.js @@ -51,6 +51,6 @@ function generateScancodeMapContent(data) { // See licenses in https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/ module.exports = new Map([ ${content.join(',\n')} -]); +]) ` }