file_check.yml 567 B

123456789101112131415161718192021
  1. name: Check File Format and License
  2. on: [pull_request]
  3. jobs:
  4. scancode_job:
  5. runs-on: ubuntu-latest
  6. name: Scan code format and license
  7. if: github.repository_owner == 'RT-Thread'
  8. steps:
  9. - uses: actions/checkout@v3
  10. - name: Set up Python
  11. uses: actions/setup-python@v3
  12. with:
  13. python-version: 3.8
  14. - name: Check Format and License
  15. shell: bash
  16. run: |
  17. pip install click chardet PyYaml
  18. python tools/ci/file_check.py check 'https://github.com/RT-Thread/rt-thread' 'master'