diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b7d4c979..e9231727 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,6 +14,8 @@ on: - mkdocs.yml - .github/workflows/docs.yml workflow_dispatch: + schedule: + - cron: '23 5 * * *' concurrency: group: pages @@ -48,8 +50,14 @@ jobs: - name: Build docs run: mkdocs build --strict + - name: Generate AI commits badge + # renovate: datasource=github-tags depName=DevSecNinja/.github + uses: DevSecNinja/.github/actions/ai-commits-badge@19b7e3c8460e63bbb0966a73297b83f4606b1e95 # v3.7.0 + with: + out: site/badges + - name: Upload Pages artifact - if: github.event_name == 'push' + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: path: site/ @@ -58,7 +66,7 @@ jobs: name: Deploy to GitHub Pages runs-on: ubuntu-24.04 needs: build - if: github.event_name == 'push' + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' permissions: pages: write id-token: write @@ -80,7 +88,7 @@ jobs: needs: - build - deploy - if: ${{ always() && github.ref == 'refs/heads/main' && github.event_name == 'push' }} + if: ${{ always() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} runs-on: ubuntu-24.04 permissions: contents: read diff --git a/README.md b/README.md index 785091b8..6954c61e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 🐠 Dotfiles -[![Docs](https://img.shields.io/badge/docs-dotfiles.ravensberg.org-blue?logo=materialformkdocs)](https://dotfiles.ravensberg.org) +[![Docs](https://img.shields.io/badge/docs-dotfiles.ravensberg.org-blue?logo=materialformkdocs)](https://dotfiles.ravensberg.org) [![AI commits](https://dotfiles.ravensberg.org/badges/ai-commits.svg)](https://dotfiles.ravensberg.org/badges/ai-commits-stats.json) Modern dotfiles repository managed with [Chezmoi](https://chezmoi.io/), featuring [Fish shell](https://fishshell.com/) configuration and automated setup scripts. @@ -392,6 +392,12 @@ chezmoi init --data=false - [Fish Shell Documentation](https://fishshell.com/docs/current/) - [Chezmoi Template Reference](https://www.chezmoi.io/reference/templates/) +## 🤖 AI usage + +These figures count commits by recognized AI agents or with AI co-author trailers; merges and bot automation are excluded. Unmarked AI assistance is not counted, and commits are not a measure of lines written. + +[![Who wrote the commits?](https://dotfiles.ravensberg.org/badges/ai-commits-card.svg)](https://dotfiles.ravensberg.org/badges/ai-commits-stats.json) + ## 🤝 Contributing Feel free to fork and customize this repository for your own needs!