1name: Scancode 2 3on: [pull_request] 4 5jobs: 6 scancode_job: 7 runs-on: ubuntu-latest 8 name: Scan code for licenses 9 steps: 10 - uses: actions/checkout@v1 11 - name: Scan the code 12 id: scancode 13 uses: zephyrproject-rtos/action_scancode@v4 14 with: 15 directory-to-scan: 'scan/' 16 - name: Artifact Upload 17 uses: actions/upload-artifact@v1 18 with: 19 name: scancode 20 path: ./artifacts 21 22 - name: Verify 23 run: | 24 test ! -s ./artifacts/report.txt || (cat ./artifacts/report.txt && exit 1 ) 25 26