name: 'Weekly Docs Audit' on: schedule: # Runs every Monday at 00:00 UTC - cron: '0 0 * * MON' workflow_dispatch: jobs: audit-docs: runs-on: 'ubuntu-latest' permissions: contents: 'write' pull-requests: 'write' steps: - name: 'Checkout repository' uses: 'actions/checkout@v4' with: fetch-depth: 0 ref: 'main' - name: 'Set up Node.js' uses: 'actions/setup-node@v4' with: node-version: '20' - name: 'Run Docs Audit with Gemini' uses: 'google-github-actions/run-gemini-cli@v0' # Use a specific tag or SHA for stability with: gemini_api_key: '${{ secrets.GEMINI_API_KEY }}' prompt: | Activate the 'docs-writer' skill. **Task:** Audit the entire documentation set for correctness and adherence to style guidelines, as defined in your 'docs-auditing.md' reference. When you are done, please output your thought process and the steps you took for future debugging purposes, and save the audit results to 'audit-results-${{ github.run_id }}.md'. - name: 'Create Pull Request with Audit Results' uses: 'peter-evans/create-pull-request@v6' with: token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}' commit-message: 'docs: weekly audit results for ${{ github.run_id }}' title: 'Docs Audit for Week of ${{ github.event.schedule }}' body: | This PR contains the auto-generated documentation audit for the week. It includes a new `audit-results-*.md` file with findings and any direct fixes applied by the agent. Please review the suggestions and merge. branch: 'docs-audit-${{ github.run_id }}' base: 'main' team-reviewers: 'gemini-cli-docs, gemini-cli-maintainers' delete-branch: true