Skip to content

Commit a862233

Browse files
committed
fail job on bad pr format
1 parent 9677dad commit a862233

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pr_title_check.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
steps:
1212
- name: Check PR Title is Prefixed with Change Type
1313
id: check_prefix
14-
continue-on-error: true
1514
env:
1615
PR_TITLE: ${{ github.event.pull_request.title }}
1716
run: |
@@ -86,3 +85,9 @@ jobs:
8685
See the contributing guide for more details:
8786
https://github.com/NHSDigital/eps-common-workflows/blob/main/CONTRIBUTING.md
8887
comment-tag: pr-link
88+
89+
- name: Fail job due to invalid PR title format
90+
if: steps.check_prefix.outcome != 'success' || steps.check_ticket_reference.outcome != 'success'
91+
run: |
92+
echo "Job failed due to invalid PR title format."
93+
exit 1

0 commit comments

Comments
 (0)