File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ var_20: &slack_notify_on_failure
128
128
run :
129
129
name : ' Notifying team about job failure'
130
130
when : on_fail
131
- command : node ./scripts/circleci/notify-slack-job-failure.js
131
+ command : node ./scripts/circleci/notify-slack-job-failure.mjs
132
132
133
133
# Branch filter that only matches the main branch.
134
134
var_21 : &only_main_branch_filter
@@ -509,7 +509,7 @@ jobs:
509
509
name : Running size integration tests (failures are reported in Slack only).
510
510
command : |
511
511
# If the size integration tests fail, report the failure to a dedicated #components-ci-size-tracking Slack channel.
512
- yarn integration-tests:size-test || node ./scripts/circleci/notify-slack-job-failure.js components-ci-size-tracking
512
+ yarn integration-tests:size-test || node ./scripts/circleci/notify-slack-job-failure.mjs components-ci-size-tracking
513
513
- *slack_notify_on_failure
514
514
515
515
# ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change 5
5
* will be a noop when running for forked builds (i.e. PRs).
6
6
*/
7
7
8
- const {
8
+ import {
9
9
isVersionBranch ,
10
10
getConfig ,
11
11
assertValidGithubConfig ,
12
- } = require ( '@angular/dev-infra-private/ng-dev' ) ;
12
+ } from '@angular/dev-infra-private/ng-dev' ;
13
13
14
14
if ( process . env . CIRCLE_PR_NUMBER ) {
15
15
console . info ( 'Skipping notifications for pull requests.' ) ;
@@ -23,7 +23,7 @@ const {
23
23
SLACK_COMPONENTS_CI_FAILURES_WEBHOOK_URL : webhookUrl ,
24
24
} = process . env ;
25
25
26
- const { github} = getConfig ( [ assertValidGithubConfig ] ) ;
26
+ const { github} = await getConfig ( [ assertValidGithubConfig ] ) ;
27
27
const isPublishBranch = isVersionBranch ( branchName ) || branchName === github . mainBranchName ;
28
28
29
29
// We don't want to spam the CI failures channel with e.g. Renovate branch failures.
You can’t perform that action at this time.
0 commit comments