-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcommit-check-workflow-a.yml
More file actions
33 lines (29 loc) · 945 Bytes
/
Copy pathcommit-check-workflow-a.yml
File metadata and controls
33 lines (29 loc) · 945 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
33
# Workflow A: Run commit checks on pull_request events.
#
# This workflow is triggered by pull_request and runs commit checks.
# It uploads the result as an artifact so Workflow B (commit-check-comment.yml)
# can read it and post a PR comment with full write permissions.
#
# See https://github.com/commit-check/commit-check-action#fork-pr-comments
name: Commit Check
on:
pull_request:
branches: ["main"]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: commit-check/commit-check-action@v2
with:
message: true
branch: true
pr-comments: false # comments handled by Workflow B
job-summary: true
# Save results so Workflow B can post a PR comment
- uses: actions/upload-artifact@v4
with:
name: commit-check-result-${{ github.event.number }}
path: result.txt