hnix/.github/workflows/On-Readme-update.yml
Anton-Latukha 106dbf3b63
CI: GitHub: style clean-up
M  .github/workflows/Cabal-Linux.yml
M  .github/workflows/On-Readme-update.yml
M  .github/workflows/On-Release-Cabal-Linux.yml
M  .github/workflows/Optional-Nix-dev-env-macOS.yml
M  .github/workflows/Optional-Nix-dev-env-main.yml
2020-12-02 22:31:09 +02:00

34 lines
910 B
YAML

name: "On README change"
on:
push:
branches:
- master
paths:
- "README.md"
jobs:
build10:
name: "Check TOC, autogenerate and commit it into the PR"
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: "Install doctoc"
run: |
sudo npm install -g doctoc
- uses: actions/checkout@v2
with:
# 2020-09-29: Official doc:
# "In non-push events, such as pull_request, make sure to specify the ref to checkout:'
ref: ${{ github.head_ref }}
- name: "Generate the idenpotent TOC"
run: |
doctoc --github --notitle README.md
- name: "Commit and push changes"
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_author: "Anton Latukha <anton@latukha.com>"
commit_message: "[auto] upd README TOC"
file_pattern: "README.md"