File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1212 python-version : [3.6, 3.7, 3.8]
1313
1414 steps :
15- - uses : actions/checkout@v1
15+ - uses : actions/checkout@v2
16+ with :
17+ fetch-depth : 0
1618 - name : Set up Python ${{ matrix.python-version }}
1719 uses : actions/setup-python@v1
1820 with :
2729 git config --global user.email "action@github.com"
2830 git config --global user.name "GitHub Action"
2931 ./scripts/test
32+ - name : Check commit
33+ run : |
34+ poetry run python -m commitizen check --rev-range ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} || \
35+ if [ $$? == 3 ] ; then
36+ exit 0;
37+ else
38+ exit 1;
39+ fi
3040 - name : Upload coverage to Codecov
3141 if : runner.os == 'Linux'
3242 uses : codecov/codecov-action@v1.0.3
Original file line number Diff line number Diff line change @@ -11,4 +11,3 @@ ${PREFIX}isort --recursive --check-only commitizen tests
1111${PREFIX} flake8 commitizen/ tests/
1212${PREFIX} mypy commitizen/ tests/
1313${PREFIX} pydocstyle --convention=google --add-ignore=D1,D415
14- ${PREFIX} commitizen check --rev-range master..
You can’t perform that action at this time.
0 commit comments