Skip to content

Commit 89aa1e0

Browse files
committed
CCM-15317: Updating to use new shared-module action
1 parent b95b17f commit 89aa1e0

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ on:
1212
- main
1313

1414
jobs:
15+
check-pr-title:
16+
name: "Check PR title"
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
steps:
21+
- name: "Check PR title format"
22+
if: github.event_name == 'pull_request'
23+
uses: NHSDigital/nhs-notify-shared-modules/.github/actions/check-pr-title-format@4e781d1d72739015821a380871aa5a66d070177c # 3.1.0
24+
with:
25+
title: ${{ github.event.pull_request.title }}
26+
- name: "Skip on non-PR events"
27+
if: github.event_name != 'pull_request'
28+
run: echo "Skipping PR title check for ${GITHUB_EVENT_NAME}"
1529
metadata:
1630
name: "Set CI/CD metadata"
1731
runs-on: ubuntu-latest
@@ -125,7 +139,7 @@ jobs:
125139
make list-variables
126140
commit-stage: # Recommended maximum execution time is 2 minutes
127141
name: "Commit stage"
128-
needs: [metadata]
142+
needs: [check-pr-title, metadata]
129143
uses: ./.github/workflows/stage-1-commit.yaml
130144
with:
131145
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"

0 commit comments

Comments
 (0)