Skip to content

Commit 9c720a9

Browse files
committed
(ELI-466) addressing comments
1 parent 2627e64 commit 9c720a9

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.act/act_tests.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ACT_IMAGE = ghcr.io/nhs-england-tools/github-runner-image:20230909-321fd1e-rt
22
PREPROD_WORKFLOW = .github/workflows/cicd-4-preprod-deploy.yaml
3-
JOB = metadata
3+
JOB = metadata # This can be changed depending on which part of the workflow we are testing
44

5-
# Usage: make act EVENT=.act/workflow_run_preprod.json TRIGGER_TYPE=workflow_run
5+
# Usage: make act EVENT=.act/auto_preprod_trigger_*.json TRIGGER_TYPE=workflow_run
66
act-preprod-deploy:
77
@if [ -z "$(EVENT)" ]; then \
88
echo "Usage: make act EVENT=<path-to-event-json>"; \

.github/workflows/cicd-4-preprod-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
release_type: ${{ steps.release_type.outputs.release_type }}
3838

3939
env:
40-
TEST_WORKFLOW_ID: "190123511"
40+
TEST_WORKFLOW_ID: "190123511" # this will need updating if the workflow is recreated
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343

DEPLOYMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Releases are immutable and auditable:
109109
### When to use which `release_type`
110110

111111
- We should not normally be manually deploying, the auto deploy should take care of it
112-
- Manual deploy to brake glass
112+
- Manual deploy to break glass
113113
- Use **`patch`/`minor`/`major`** when starting a **new base version** (first RC becomes `-rc.1`).
114114
- Use **`rc`** when you need another candidate for the **same base** (`-rc.N+1`).
115115

scripts/workflow/release_type_resolver.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@
3939
)
4040

4141
def pick_highest(labels: Iterable[str]) -> str | None:
42-
labels = list(labels)
43-
if any(l == "release:major" for l in labels): return "major"
44-
if any(l == "release:minor" for l in labels): return "minor"
45-
if any(l == "release:patch" for l in labels): return "patch"
46-
if any(l == "release:rc" for l in labels): return "rc"
42+
s = set(labels)
43+
for level in ("major", "minor", "patch", "rc"):
44+
if level in s:
45+
return level
4746
return None
4847

4948
def manual_override() -> str | None:

0 commit comments

Comments
 (0)