From 817dc52fd310cb447c2ece1b7729748a4e4db228 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 4 Aug 2020 00:05:24 -0700 Subject: [PATCH] Add an 'Update LKG' action (#39897) --- .github/workflows/blank.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 00000000000..09fccd53a07 --- /dev/null +++ b/.github/workflows/blank.yml @@ -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