-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.1 KB
/
Copy pathcommit-check.yml
File metadata and controls
35 lines (33 loc) · 1.1 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
name: Commit Check
on:
pull_request:
branches: 'main'
types: [opened, synchronize, reopened, edited]
workflow_dispatch:
jobs:
commit-check:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0 # Required for merge-base checks
- uses: ./ # self test
with:
message: true
branch: true
author-name: true
author-email: true
# Report from the ubuntu job only. Every leg checks the same commits
# against the same rules, so the other two produce a byte-identical
# report — three copies of it on the run page, and the matrix is here
# to prove the action runs on each OS, not to say the same thing
# three times.
job-summary: ${{ matrix.os == 'ubuntu-latest' }}
pr-comments: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' }}
pr-title: true