-
Notifications
You must be signed in to change notification settings - Fork 286
51 lines (47 loc) · 1.54 KB
/
gitinspector.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Contribution Check - Git Inspector
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
inspect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Install python
run: sudo apt -y install python
- name: Install gitinspector
run: |
pushd ~ &> /dev/null
git clone --depth=1 https://github.com/ejwa/gitinspector.git
cd gitinspector
echo "export PATH=$(pwd):"'$PATH' >> ~/.profile
popd &> /dev/null
- name: Run gitinspector
run: |
source ~/.profile
export PYTHONIOENCODING=utf-8
gitinspector.py --version
echo "Running for commit : $GITHUB_SHA"
echo "============ Git Inspector ==========="
gitinspector.py -wTHl --format=text -f c,h,md,yml,* -x file:3_implementation/unity -x file:doc .
gitinspector.py -wTHl --format=html -f c,h,md,yml,* -x file:3_implementation/unity -x file:doc . > ~/result.html
echo "======================================"
#If using gihub io pages feature
# - name : Update Results to gh-pages
# uses: actions/checkout@v2
# with:
# ref: gh-pages
# - name: Update Results to gh-pages
# run: |
# pwd
# rm -f result.html
# mv ~/result.html result.html
# git config user.name "GitHub Actions"
# git config user.email actions@github.com
# git add result.html
# git commit -m "[auto] Update Results for commit SHA $GITHUB_SHA"
# git push