-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1016 Bytes
/
self-commitizen.yaml
File metadata and controls
34 lines (29 loc) · 1016 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
34
name: Commitizen
on:
merge_group:
pull_request:
concurrency:
group: pr-${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
check_pr_title:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/check-pr-title.yaml
check_commit_messages:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/check-commit-messages.yaml
commitizen:
name: commitizen:required
runs-on: ubuntu-latest
needs: [check_pr_title, check_commit_messages]
if: always()
steps:
- name: Check previous jobs
run: |
if [[ "${{ needs.check_pr_title.result }}" == "success" || "${{ needs.check_pr_title.result }}" == "skipped" ]] &&
[[ "${{ needs.check_commit_messages.result }}" == "success" || "${{ needs.check_commit_messages.result }}" == "skipped" ]]; then
echo "All required jobs passed or were skipped."
else
echo "One or more jobs failed."
exit 1
fi