Debian Codegraph @

ansible_collections/community/windows/.github/workflows/docs-pr.yml

raw
1 name: Collection Docs
2 concurrency:
3 group: docs-pr-${{ github.head_ref }}
4 cancel-in-progress: true
5 "on":
6 pull_request_target:
7 types: [opened, synchronize, reopened, closed]
8
9 env:
10 GHP_BASE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
11
12 jobs:
13 # Validation job runs a strict build to ensure it will fail CI on any mistakes.
14 validate-docs:
15 permissions:
16 contents: read
17 name: Validate Ansible Docs
18 if: github.event.action != 'closed'
19 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@main
20 with:
21 artifact-upload: false
22 init-lenient: false
23 init-fail-on-error: true
24 build-ref: refs/pull/${{ github.event.number }}/merge
25 extra-collections: microsoft.ad microsoft.iis
26
27 # The build job runs with the most lenient settings to ensure the best chance of getting
28 # a rendered docsite that can be looked at.
29 build-docs:
30 permissions:
31 contents: read
32 name: Build Ansible Docs
33 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
34 with:
35 init-lenient: true
36 init-fail-on-error: false
37
38 comment:
39 permissions:
40 pull-requests: write
41 runs-on: ubuntu-latest
42 needs: [build-docs]
43 name: PR comments
44 steps:
45 - name: PR comment
46 uses: ansible-community/github-docs-build/actions/ansible-docs-build-comment@main
47 with:
48 body-includes: "## Docs Build"
49 reactions: heart
50 action: ${{ needs.build-docs.outputs.changed != 'true' && 'remove' || '' }}
51 on-closed-action: remove
52 on-merged-action: remove
53 body: |
54 ## Docs Build 📝
55
56 Thank you for contribution!✨
57
58 The docsite for **this PR** is available for download as an artifact from this run:
59 ${{ needs.build-docs.outputs.artifact-url }}
60
61 You can compare to the docs for the `main` branch here:
62 ${{ env.GHP_BASE_URL }}/branch/main
63
64 File changes:
65
66 ${{ needs.build-docs.outputs.diff-files-rendered }}
67
68 ${{ needs.build-docs.outputs.diff-rendered }}