From e0ed1eacfdd17cdd05fda7afb4c31f2bf460ab78 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 29 Apr 2020 12:06:01 -0700 Subject: [PATCH] [meta] add actions: Automatic Rebase for PRs, auto-update-TOC for push --- .github/workflows/rebase.yml | 15 +++++++++++++++ .github/workflows/toc.yml | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/rebase.yml create mode 100644 .github/workflows/toc.yml diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml new file mode 100644 index 0000000000..844cbbaa9d --- /dev/null +++ b/.github/workflows/rebase.yml @@ -0,0 +1,15 @@ +name: Automatic Rebase + +on: [pull_request] + +jobs: + _: + name: "Automatic Rebase" + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: ljharb/rebase@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml new file mode 100644 index 0000000000..7f238ff01d --- /dev/null +++ b/.github/workflows/toc.yml @@ -0,0 +1,25 @@ +name: update readme TOC + +on: [push] + +jobs: + _: + name: "update readme TOC" + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + - run: npm install + - run: npm run doctoc + - name: commit changes + uses: ljharb/actions-js-build/commit@v3+amendpush + with: + amend: true + force: true + - uses: ljharb/rebase@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}