Debian Codegraph @

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

raw
1 name: Collection Docs
2 concurrency:
3 group: docs-${{ github.head_ref }}
4 cancel-in-progress: true
5 on:
6 pull_request_target:
7 types: [opened, synchronize, reopened, closed]
8 env:
9 GHP_BASE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
10
11 jobs:
12 validate-docs:
13 permissions:
14 contents: read
15 name: Validate Ansible Docs
16 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
17 with:
18 init-lenient: false
19 init-fail-on-error: true
20 ansible-ref: devel
21 extra-collections: 'git+https://github.com/ansible-collections/amazon.aws.git,main'
22 intersphinx-links: |
23 amazon_aws:https://ansible-collections.github.io/amazon.aws/branch/main/
24 ansible_devel:https://docs.ansible.com/ansible-core/devel/
25 artifact-name: ${{ github.event.repository.name }}_validate_docs_${{ github.event.pull_request.head.sha }}
26
27
28 build-docs:
29 permissions:
30 contents: read
31 name: Build Ansible Docs
32 uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
33 with:
34 init-lenient: true
35 init-fail-on-error: false
36 ansible-ref: devel
37 extra-collections: 'git+https://github.com/ansible-collections/amazon.aws.git,main'
38 intersphinx-links: |
39 amazon_aws:https://ansible-collections.github.io/amazon.aws/branch/main/
40 ansible_devel:https://docs.ansible.com/ansible-core/devel/
41
42 comment:
43 permissions:
44 pull-requests: write
45 runs-on: ubuntu-latest
46 needs: [build-docs]
47 name: PR comments
48 steps:
49 - name: PR comment
50 uses: ansible-community/github-docs-build/actions/ansible-docs-build-comment@main
51 with:
52 body-includes: '## Docs Build'
53 reactions: heart
54 action: ${{ needs.build-docs.outputs.changed != 'true' && 'remove' || '' }}
55 on-closed-action: remove
56 on-merged-body: |
57 ## Docs Build 📝
58
59 Thank you for contribution!✨
60
61 This PR has been merged and your docs changes will be incorporated when they are next published.
62 body: |
63 ## Docs Build 📝
64
65 Thank you for contribution!✨
66
67 The docsite for **this PR** is available for download as an artifact from this run:
68 ${{ needs.build-docs.outputs.artifact-url }}
69
70 You can compare to the docs for the `main` branch here:
71 ${{ env.GHP_BASE_URL }}/branch/main
72
73 File changes:
74
75 ${{ needs.build-docs.outputs.diff-files-rendered }}
76
77 ${{ needs.build-docs.outputs.diff-rendered }}