clickup-cli 0.9.1

CLI for the ClickUp API, optimized for AI agents
Documentation
name: Sync docs from repo root

on:
  push:
    branches: [main]
    paths:
      - CHANGELOG.md
      - Cargo.toml

permissions:
  contents: write

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Rebuild docs/changelog.md
        run: |
          {
            echo '---'
            echo 'layout: default'
            echo 'title: Changelog'
            echo "description: Release notes for clickup-cli — every version's additions, changes, and fixes."
            echo 'permalink: /changelog/'
            echo '---'
            echo
            cat CHANGELOG.md
          } > docs/changelog.md

      - name: Update docs/_config.yml version from Cargo.toml
        run: |
          VERSION=$(grep -m1 '^version = ' Cargo.toml | sed 's/^version = "\(.*\)"/\1/')
          sed -i "s/^version:.*/version: ${VERSION}/" docs/_config.yml

      - name: Commit if changed
        run: |
          if [ -n "$(git status --porcelain docs/)" ]; then
            git config user.name "github-actions[bot]"
            git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
            git add docs/changelog.md docs/_config.yml
            git commit -m "docs: sync changelog and site version from repo root"
            git push
          fi