name: Pull Request for Documentation Changes

on:
  pull_request_target:
    branches:
      - master
    paths:
      - '.markdownlint.yaml'
      - '.vale.ini'
      - 'Dockerfile-docs'
      - 'docs-nginx.conf'
      - 'docs/**'
      - 'theme_common'
      - 'theme_override'

jobs:
  qa:
    uses: stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.73
    with:
      MD_CONFIG: .github/md_config.json
      DOC_SRC: docs
      MD_LINT_CONFIG: .markdownlint.yaml
  build:
    uses: stakater/.github/.github/workflows/pull_request_container_build.yaml@v0.0.73
    with:
      DOCKER_FILE_PATH: Dockerfile-docs
    secrets:
      CONTAINER_REGISTRY_URL: ghcr.io/stakater/docs
      CONTAINER_REGISTRY_USERNAME: stakater-user
      CONTAINER_REGISTRY_PASSWORD: ${{ secrets.STAKATER_GITHUB_TOKEN }}
      SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
