Skip to content

Ping @saschanaz when update-core-deps fails #1310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/update-core-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ jobs:
- run: ncu -u
- run: npm i
- run: git restore package.json
- run: npm run build && npm run baseline-accept
- id: build
run: npm run build && npm run baseline-accept
continue-on-error: true
- if: ${{ steps.build.outcome == 'failure' }}
run: node deploy/onUpdateFailure.js
- id: git-diff
run: git diff --quiet HEAD baselines
continue-on-error: true
Expand Down
10 changes: 10 additions & 0 deletions deploy/onUpdateFailure.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Octokit } from "@octokit/rest";

const authToken = process.env.GITHUB_TOKEN || process.env.GITHUB_API_TOKEN;
const octokit = new Octokit({ auth: authToken });
await octokit.issues.createComment({
owner: "microsoft",
repo: "TypeScript-DOM-lib-generator",
issue_number: 1282,
body: "Hello contributors in this thread, kindly pinging y'all as the 'Update core dependencies' job failed today. Please fix it when you have time, thanks!",
});