From 7dce295f0e98b5b651c4f09907d4dfee6c48fee6 Mon Sep 17 00:00:00 2001 From: sarisia Date: Wed, 12 Aug 2020 15:42:07 +0900 Subject: [PATCH] use ssh deploy --- .github/workflows/toc.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 8fe8567..ccf17d7 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -12,10 +12,16 @@ jobs: runs-on: ubuntu-latest steps: - - name: TOC Generator - uses: neuenmuller/toc-generator@3d54e40125014baed3ba75617c44af2a42b9f67d + - uses: actions/checkout@v2 with: - TARGET_PATHS: README.md - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TOC_TITLE: '' - ENTIRE: true + ssh-key: ${{ secrets.DEPLOY_KEY }} + - run: sudo npm i --global neuenmuller/doctoc#entire + - run: doctoc --entire --notitle README.md + - name: setup git user + run: | + git config --global user.name "${{ github.actor }}" + git config --global user.email "${{ github.actor }}@users.noreply.github.com" + - run: | + git add . + git commit -m "docs: update toc" || true + git push