mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 19:10:21 +00:00
3325e5045e
Currently commitlint is only skipped for PR at the time dependabot creates them. Once Mergify rebases them, commitlint is started anyway. This causes failed CI runs, which then need to be ignored. It is cleaner to not run commitlint on any PR that dependabot owns. Signed-off-by: Niels de Vos <ndevos@redhat.com>
23 lines
579 B
YAML
23 lines
579 B
YAML
---
|
|
name: commitlint
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
commitlint:
|
|
name: commitlint
|
|
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: commitlint
|
|
# yamllint disable-line rule:line-length
|
|
run: make containerized-test CONTAINER_CMD=docker TARGET=commitlint GIT_SINCE="origin/${GITHUB_BASE_REF}"
|