mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-20 19:45:07 -06:00
Add an action to update baselines/fix lints (#39898)
* Add an action to update baselines/fix lints * Change email
This commit is contained in:
parent
68925b66f4
commit
f4157b41db
29
.github/workflows/accept-baselines-fix-lints.yaml
vendored
Normal file
29
.github/workflows/accept-baselines-fix-lints.yaml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Accept Baselines and Fix Lints
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use node version 12
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
|
||||
run: |
|
||||
git config user.email "typescriptbot@microsoft.com"
|
||||
git config user.name "TypeScript Bot"
|
||||
npm install
|
||||
gulp runtests-parallel --ci --fix
|
||||
gulp baseline-accept
|
||||
git add ./src
|
||||
git add ./tests/baselines/reference
|
||||
git diff --cached
|
||||
git commit -m "Update Baselines and/or Applied Lint Fixes"
|
||||
git push
|
||||
Loading…
x
Reference in New Issue
Block a user