forked from konflux-ci/release-service-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 754 Bytes
/
Copy pathlint.yaml
File metadata and controls
32 lines (32 loc) · 754 Bytes
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
---
name: Linters
'on':
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run yamllint
uses: frenck/action-yamllint@v1
gitlint:
name: Run gitlint checks
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: '${{ github.event.pull_request.head.sha }}'
- name: Install gitlint into container
run: python -m pip install gitlint
- name: Run gitlint check
run: >-
gitlint --commits origin/${{ github.event.pull_request.base.ref
}}..HEAD