mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
ci: pass GITHUB_BASE_REF when running commitlint
GitHub Actions include a merge commit for the PR, which will defeat the commitlint checking of all the commits inside the PR (only the merge commit is checked). Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
Madhu Rajanna
parent
4e2c4ef704
commit
538e36f7a7
5
.github/workflows/commitlint.yaml
vendored
5
.github/workflows/commitlint.yaml
vendored
@ -11,5 +11,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: commitlint
|
||||
run: CONTAINER_CMD=docker make containerized-test TARGET=commitlint
|
||||
# yamllint disable-line rule:line-length
|
||||
run: make containerized-test CONTAINER_CMD=docker TARGET=commitlint GIT_SINCE="origin/${GITHUB_BASE_REF}"
|
||||
|
Reference in New Issue
Block a user