File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 - main
1313
1414jobs :
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 }}"
You can’t perform that action at this time.
0 commit comments