summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-04-05 10:01:59 +0800
committerGitHub <[email protected]>2021-04-05 10:01:59 +0800
commitfd227f79c0ac11d41c111a45f80148175e63f449 (patch)
tree026f2e63fc76cf208676d3c28c21e2a65fe46de6 /.github
parentc18cd58e3e9b70f412097534313cf5a76fca12a6 (diff)
parent1e4a463f363dcde37f14d0ae2772360f4ff87a5e (diff)
Merge pull request #34 from RT-Thread/master
pr
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/file_check.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/file_check.yml b/.github/workflows/file_check.yml
new file mode 100644
index 0000000000..90576c4eda
--- /dev/null
+++ b/.github/workflows/file_check.yml
@@ -0,0 +1,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@v2
+ - name: Set up Python
+ uses: actions/setup-python@master
+ with:
+ python-version: 3.8
+
+ - name: Check Format and License
+ shell: bash
+ run: |
+ pip install click chardet
+ python tools/file_check.py check 'https://github.com/RT-Thread/rt-thread' 'master'