Skip to content

Update daily.yml

Update daily.yml #55

Workflow file for this run

name: Update TOC
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Install gomdtoc
run: |
go install -ldflags "-s -w" "github.com/dreamjz/gomdtoc@latest"
- name: Update toc
run: |
echo Working dir: `pwd`
gomdtoc -s image,images .
- name: Commit & Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto update toc