Browse Source

[meta] add actions: Automatic Rebase for PRs, auto-update-TOC for push

Jordan Harband 5 years ago
parent
commit
e0ed1eacfd
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
  1. 15
      .github/workflows/rebase.yml
  2. 25
      .github/workflows/toc.yml

15
.github/workflows/rebase.yml

@ -0,0 +1,15 @@ @@ -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 }}

25
.github/workflows/toc.yml

@ -0,0 +1,25 @@ @@ -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 }}
Loading…
Cancel
Save