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