Merge pull request #1514 from liblouis/nl_unicode_braille #67
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: Check the license of the tables | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: | |
- 'tables/*' | |
pull_request: | |
branches: [ master ] | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
check-licenses: | |
name: Check the license of the tables | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Install dependencies | |
run: sudo apt-get update -qq && sudo apt-get install -y licensecheck | |
- name: Check licenses | |
# we check all tables for a license header. If any of the | |
# licenses is not LGPL-2.1+ or LGPL-3+ we flag a problem | |
run: | | |
test -z "$(licensecheck --check='\.(ctb|utb|cti|uti|dis)' --deb-fmt --machine tables/* | grep -Ev '(LGPL-2.1+|LGPL-3+)' | tee unknown_licenses.txt)" | |
- name: Store the list of files with unknown licenses | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 | |
with: | |
name: unknown_licenses.txt | |
path: unknown_licenses.txt | |