Add an 'Update LKG' action (#39897)

This commit is contained in:
Daniel Rosenwasser 2020-08-04 00:05:24 -07:00 committed by GitHub
parent d985e68ffa
commit 817dc52fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

35
.github/workflows/blank.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Update LKG
on:
workflow_dispatch:
inputs:
branchName:
description: "The name of the branch you'd like to update the Last Known Good (LKG) version of the compiler on."
required: true
default: "master"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branchName }}
- name: Use node version 12
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Configure Git and Update LKG
run: |
git config user.email "ts_bot@rcavanaugh.com"
git config user.name "TypeScript Bot"
npm install
gulp LKG
npm test
git diff
git add ./lib
git commit -m "Update LKG"
git push