chore: update examples [CI] #385
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check TOC | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'site/**' | |
- 'scripts/**' | |
- '.github/workflows/**' | |
jobs: | |
toc: | |
name: TOC | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_PAT || github.token }} | |
ref: ${{ github.ref }} | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version: 20 | |
- name: Install Node dependencies | |
run: yarn --frozen-lockfile | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
- name: Setup data | |
run: yarn data | |
- name: Build Jekyll | |
run: | | |
pushd site | |
bundle install | |
bundle exec jekyll build -q | |
popd | |
- name: Build TOC | |
run: scripts/generate-toc | |
- name: Setup Git remote | |
run: scripts/setup-git-ci.sh | |
- name: Check and Commit | |
run: scripts/check-and-commit-toc.sh |