Skip to content

Commit d27cae4

Browse files
committed
Ping @saschanaz when update-core-deps fails
Closes microsoft#1282.
1 parent ff45546 commit d27cae4

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/update-core-deps.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
- run: ncu -u
2323
- run: npm i
2424
- run: git restore package.json
25-
- run: npm run build && npm run baseline-accept
25+
- id: build
26+
run: npm run build && npm run baseline-accept
27+
continue-on-error: true
28+
- if: ${{ steps.build.outcome == 'failure' }}
29+
run: node deploy/onUpdateFailure.js
2630
- id: git-diff
2731
run: git diff --quiet HEAD baselines
2832
continue-on-error: true

deploy/onUpdateFailure.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Octokit } from "@octokit/rest";
2+
3+
const authToken = process.env.GITHUB_TOKEN || process.env.GITHUB_API_TOKEN;
4+
const octokit = new Octokit({ auth: authToken });
5+
await octokit.issues.createComment({
6+
owner: "microsoft",
7+
repo: "TypeScript-DOM-lib-generator",
8+
issue_number: 1282,
9+
body: "Hi @saschanaz, kindly pinging you as the 'Update core dependencies' job failed today.",
10+
});

0 commit comments

Comments
 (0)