From 0f605d0a7c6744e659119ee2f5f1ad88a6cf51c9 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Mon, 7 Dec 2020 17:30:37 +0100 Subject: [PATCH] Merge markdown workflow. Do not autocommit TOC updates. --- .github/workflows/autofix.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index 2841541..12b9fe0 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -12,14 +12,14 @@ name: Autofix jobs: - toc: - name: Generator TOC and auto-commit + markdown: + name: Format markdown, update TOC and create a PR runs-on: ubuntu-20.04 steps: + - uses: actions/checkout@v2.3.4 - name: Install doctoc run: | sudo npm install -g doctoc - - uses: actions/checkout@v2.3.4 - name: Generate full TOC run: | doctoc --github readme.md @@ -29,19 +29,6 @@ jobs: run: > gawk -i inplace '!/^- \[(Contributing|Footnotes)\]\(#.+\)$/{print}' ./readme.md - - name: Commit and push changes - uses: stefanzweifel/git-auto-commit-action@v4.7.2 - with: - commit_author: "Kevin Deldycke " - commit_message: "[lint] Update TOC." - file_pattern: readme.md - - markdown: - name: Format markdown and create a PR - needs: toc - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2.3.4 - name: Install Pandoc run: | sudo apt install pandoc