From 3a3c8d685661ae8c8b7f39a6a83d1fad44e12196 Mon Sep 17 00:00:00 2001 From: alvicsam Date: Mon, 28 Aug 2023 14:45:23 +0200 Subject: [PATCH] run for each repo --- .github/workflows/check-licenses.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index fde31405d9ce..3c33e5629dde 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -22,14 +22,26 @@ jobs: shopt -s globstar echo "install" npm install -g @paritytech/license-scanner@0.0.5 - echo "run" + echo "run for cumulus" + cd cumulus npx @paritytech/license-scanner scan \ --ensure-licenses=Apache-2.0 \ --ensure-licenses=GPL-3.0-only \ - "./substrate/bin/node-template/node/src/chain_spec.rs" - # npx @paritytech/license-scanner scan \ - # --ensure-licenses=Apache-2.0 \ - # --ensure-licenses=GPL-3.0-only \ - # ./**/*.rs + ./**/*.rs + cd .. + echo "run for polkadot" + cd polkadot + npx @paritytech/license-scanner scan \ + --ensure-licenses=Apache-2.0 \ + --ensure-licenses=GPL-3.0-only \ + ./**/*.rs + cd .. + echo "run for substrate" + cd substrate + npx @paritytech/license-scanner scan \ + --ensure-licenses=Apache-2.0 \ + --ensure-licenses=GPL-3.0-only \ + ./**/*.rs + cd .. env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}