-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (42 loc) · 1.18 KB
/
Copy pathcommit-check.yml
File metadata and controls
46 lines (42 loc) · 1.18 KB
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
36
37
38
39
40
41
42
43
44
45
46
name: Commit Conventions, Signing, and Sign-off
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
dco_check:
runs-on: ubuntu-22.04
name: DCO
if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@198af03565609bb4ed924d1260247b4881f09e7d
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: tim-actions/dco@f2279e6e62d5a7d9115b0cb8e837b777b1b02e21
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
env:
ACTIONS_STEP_DEBUG: true
commitlint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5.4.1
env:
ACTIONS_STEP_DEBUG: true
validate_pr_title:
name: Validate PR title
if: github.event_name == 'pull_request'
runs-on: ubuntu-22.04
steps:
- uses: amannn/action-semantic-pull-request@v5.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACTIONS_STEP_DEBUG: true