Skip to content

Include docs-doctor action #6

Include docs-doctor action

Include docs-doctor action #6

Workflow file for this run

name: Docs Doctor
#on:
# issue_comment:
# types:
# - created
on:
push:
workflow_dispatch:
permissions:
contents: read
jobs:
docs-doctor:
name: Analyze docs.wpvip.com for inconsistencies related to the PR
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
# if: >
# github.event.issue.pull_request &&
# github.event.comment.body == '/docs-doctor'
steps:
- name: Get issue number
run: |
echo "Issue number: ${{ github.event.issue.number }}"
- name: Generate Report
uses: Automattic/vip-actions/docs-doctor@docs-doctor
with:
url: https://docs.wpvip.com
sitemap_url: https://docs.wpvip.com/page-sitemap.xml
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
pr_number: ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ github.token }}