Skip to content

Commit 58806bf

Browse files
rashedul-hassan-appapaleslimghost
authored andcommitted
feat(circleci): added a parameter that will allow the change-api to send notificiation to additional channels
1 parent fcae68e commit 58806bf

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

orb/src/jobs/deploy-production.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ parameters:
1111
The system-code of the system being changed. Defaults to the repository
1212
name.
1313
type: string
14+
slack-channels:
15+
default: ''
16+
type: string
17+
description: >-
18+
Comma-separated list of Slack channel names for Change API notifications
19+
(e.g. 'apps-announce' or 'apps-announce, ft-tech-incidents').
20+
Production changes automatically notify #ft-changes. This parameter is for
21+
additional channels. Leave empty for the default #ft-changes channel only.
1422
cloudsmith-org:
1523
default: 'financial-times'
1624
type: string
@@ -47,6 +55,16 @@ steps:
4755
- run:
4856
name: Deploy to production
4957
command: npx dotcom-tool-kit deploy:production
50-
- change-api/change-log:
51-
environment: production
52-
system-code: << parameters.system-code >>
58+
- when:
59+
condition: << parameters.slack-channels >>
60+
steps:
61+
- change-api/change-log:
62+
environment: production
63+
system-code: << parameters.system-code >>
64+
slack-channels: << parameters.slack-channels >>
65+
- unless:
66+
condition: << parameters.slack-channels >>
67+
steps:
68+
- change-api/change-log:
69+
environment: production
70+
system-code: << parameters.system-code >>

0 commit comments

Comments
 (0)