format_check.yml 692 B

12345678910111213141516171819202122232425262728
  1. name: Check File Format and License
  2. on:
  3. pull_request:
  4. branches:
  5. - master
  6. paths-ignore:
  7. - documentation/**
  8. - '**/README.md'
  9. - '**/README_zh.md'
  10. jobs:
  11. scancode_job:
  12. runs-on: ubuntu-22.04
  13. name: Scan code format and license
  14. if: github.repository_owner == 'RT-Thread'
  15. steps:
  16. - uses: actions/checkout@main
  17. - name: Set up Python
  18. uses: actions/setup-python@main
  19. with:
  20. python-version: 3.8
  21. - name: Check Format and License
  22. shell: bash
  23. run: |
  24. pip install click chardet PyYaml
  25. python tools/ci/file_check.py check 'https://github.com/RT-Thread/rt-thread' 'master'