diff --git a/.github/workflows/pr_title_check.yml b/.github/workflows/pr_title_check.yml index 780ded7..f8fb08e 100644 --- a/.github/workflows/pr_title_check.yml +++ b/.github/workflows/pr_title_check.yml @@ -86,3 +86,9 @@ jobs: See the contributing guide for more details: https://github.com/NHSDigital/eps-common-workflows/blob/main/CONTRIBUTING.md comment-tag: pr-link + + - name: Fail job due to invalid PR title format + if: steps.check_prefix.outcome != 'success' || steps.check_ticket_reference.outcome != 'success' + run: | + echo "Job failed due to invalid PR title format." + exit 1