summaryrefslogtreecommitdiff
path: root/.github/workflows/file_check.yml
blob: a7c706d9c9eb5e9351f28929c77589547126076e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Check File Format and License

on: [pull_request]

jobs:
  scancode_job:
    runs-on: ubuntu-latest
    name: Scan code format and license
    steps:
      - uses: actions/checkout@v3
      - name: Set up Python
        uses: actions/setup-python@v3
        with:
          python-version: 3.8
      
      - name: Check Format and License
        shell: bash
        run: |
          pip install click chardet PyYaml
          python tools/file_check.py check 'https://github.com/RT-Thread/rt-thread' 'master'