2021-04-01 11:56:01 +08:00
|
|
|
name: Check File Format and License
|
|
|
|
|
2023-07-23 18:52:08 +08:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- documentation/**
|
|
|
|
- '**/README.md'
|
|
|
|
- '**/README_zh.md'
|
2021-04-01 11:56:01 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
scancode_job:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Scan code format and license
|
2023-07-11 08:09:08 +08:00
|
|
|
if: github.repository_owner == 'RT-Thread'
|
2021-04-01 11:56:01 +08:00
|
|
|
steps:
|
2023-12-26 23:42:58 +08:00
|
|
|
- uses: actions/checkout@v4
|
2021-04-01 11:56:01 +08:00
|
|
|
- name: Set up Python
|
2022-04-01 12:05:39 +08:00
|
|
|
uses: actions/setup-python@v3
|
2021-04-01 11:56:01 +08:00
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
|
|
|
|
- name: Check Format and License
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2021-04-06 10:39:22 +08:00
|
|
|
pip install click chardet PyYaml
|
2023-05-14 10:35:28 +08:00
|
|
|
python tools/ci/file_check.py check 'https://github.com/RT-Thread/rt-thread' 'master'
|