File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint documentation files
2+
3+ on :
4+ push :
5+ paths :
6+ - " .github/workflows/lint-documentation.yml"
7+ - " Taskfile.yml"
8+ # Recognized license files. See: https://github.com/licensee/licensee/blob/master/docs/what-we-look-at.md#detecting-the-license-file
9+ - " COPYING*"
10+ - " LICENCE*"
11+ - " LICENSE*"
12+ pull_request :
13+ paths :
14+ - " .github/workflows/lint-documentation.yml"
15+ - " Taskfile.yml"
16+ - " COPYING*"
17+ - " LICENCE*"
18+ - " LICENSE*"
19+
20+ jobs :
21+ check-license :
22+ runs-on : ubuntu-latest
23+
24+ steps :
25+ - name : Checkout local repository
26+ uses : actions/checkout@v2
27+
28+ - name : Install Taskfile
29+ uses : arduino/actions/setup-taskfile@master
30+ with :
31+ repo-token : ${{ secrets.GITHUB_TOKEN }}
32+ version : 3.x
33+
34+ - uses : ruby/setup-ruby@v1
35+ with :
36+ ruby-version : ruby # Install latest version
37+
38+ - name : Install licensee
39+ run : gem install licensee
40+
41+ # See: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/licensing-a-repository
42+ - name : Check license file
43+ run : task --silent docs:check-license
You can’t perform that action at this time.
0 commit comments