Skip to content

Commit 7ee3144

Browse files
committed
CCM-15317: add PR title check workflow; revert cicd-1 to main
1 parent 89aa1e0 commit 7ee3144

2 files changed

Lines changed: 21 additions & 15 deletions

File tree

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@ 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}"
2915
metadata:
3016
name: "Set CI/CD metadata"
3117
runs-on: ubuntu-latest
@@ -139,7 +125,7 @@ jobs:
139125
make list-variables
140126
commit-stage: # Recommended maximum execution time is 2 minutes
141127
name: "Commit stage"
142-
needs: [check-pr-title, metadata]
128+
needs: [metadata]
143129
uses: ./.github/workflows/stage-1-commit.yaml
144130
with:
145131
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "4. PR Title Check"
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, edited]
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
check-pr-title:
14+
name: "Check PR title"
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: "Check PR title format"
18+
uses: NHSDigital/nhs-notify-shared-modules/.github/actions/check-pr-title-format@4e781d1d72739015821a380871aa5a66d070177c # 3.1.0
19+
with:
20+
title: ${{ github.event.pull_request.title }}

0 commit comments

Comments
 (0)