forked from microsoft/TypeScript-DOM-lib-generator
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1023 Bytes
/
update-core-deps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Update core dependencies
on:
workflow_dispatch:
schedule:
# https://crontab.guru/#5_8_*_*_*
- cron: "5 8 * * *"
# Conditional runs
# https://stackoverflow.com/a/61832535/2460034
jobs:
update-webref:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '15'
# Use ncu to detect major version changes
- run: npm i -g npm-check-updates
- run: ncu -u
- run: npm i
- run: git restore package.json
- run: npm run build && npm run baseline-accept
- id: git-diff
run: git diff --quiet HEAD baselines
continue-on-error: true
- uses: peter-evans/create-pull-request@v3
if: ${{ steps.git-diff.outcome == 'failure' }}
with:
commit-message: "chore(package): update core dependencies"
title: "chore(package): update core dependencies"
branch: update-core-deps
token: ${{ secrets.TS_GITHUB_BOT_AUTH }}