summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/aws/.github/workflows
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/community/aws/.github/workflows
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/community/aws/.github/workflows')
-rw-r--r--ansible_collections/community/aws/.github/workflows/docs-pr.yml74
-rw-r--r--ansible_collections/community/aws/.github/workflows/docs-push.yml40
2 files changed, 114 insertions, 0 deletions
diff --git a/ansible_collections/community/aws/.github/workflows/docs-pr.yml b/ansible_collections/community/aws/.github/workflows/docs-pr.yml
new file mode 100644
index 000000000..35b58df24
--- /dev/null
+++ b/ansible_collections/community/aws/.github/workflows/docs-pr.yml
@@ -0,0 +1,74 @@
+name: Collection Docs
+concurrency:
+ group: docs-${{ github.head_ref }}
+ cancel-in-progress: true
+on:
+ pull_request_target:
+ types: [opened, synchronize, reopened, closed]
+
+env:
+ GHP_BASE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
+
+jobs:
+ validate-docs:
+ permissions:
+ contents: read
+ name: Validate Ansible Docs
+ uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
+ with:
+ init-lenient: false
+ init-fail-on-error: true
+ extra-collections: 'git+https://github.com/ansible-collections/amazon.aws.git,main'
+ intersphinx-links: |
+ amazon_aws:https://ansible-collections.github.io/amazon.aws/branch/main/
+ ansible_devel:https://docs.ansible.com/ansible-core/devel/
+
+ build-docs:
+ permissions:
+ contents: read
+ name: Build Ansible Docs
+ uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
+ with:
+ init-lenient: true
+ init-fail-on-error: false
+ extra-collections: 'git+https://github.com/ansible-collections/amazon.aws.git,main'
+ intersphinx-links: |
+ amazon_aws:https://ansible-collections.github.io/amazon.aws/branch/main/
+ ansible_devel:https://docs.ansible.com/ansible-core/devel/
+
+ comment:
+ permissions:
+ pull-requests: write
+ runs-on: ubuntu-latest
+ needs: [build-docs]
+ name: PR comments
+ steps:
+ - name: PR comment
+ uses: ansible-community/github-docs-build/actions/ansible-docs-build-comment@main
+ with:
+ body-includes: '## Docs Build'
+ reactions: heart
+ action: ${{ needs.build-docs.outputs.changed != 'true' && 'remove' || '' }}
+ on-closed-action: remove
+ on-merged-body: |
+ ## Docs Build 📝
+
+ Thank you for contribution!✨
+
+ This PR has been merged and your docs changes will be incorporated when they are next published.
+ body: |
+ ## Docs Build 📝
+
+ Thank you for contribution!✨
+
+ The docsite for **this PR** is available for download as an artifact from this run:
+ ${{ needs.build-docs.outputs.artifact-url }}
+
+ You can compare to the docs for the `main` branch here:
+ ${{ env.GHP_BASE_URL }}/branch/main
+
+ File changes:
+
+ ${{ needs.build-docs.outputs.diff-files-rendered }}
+
+ ${{ needs.build-docs.outputs.diff-rendered }}
diff --git a/ansible_collections/community/aws/.github/workflows/docs-push.yml b/ansible_collections/community/aws/.github/workflows/docs-push.yml
new file mode 100644
index 000000000..69c8fe7d6
--- /dev/null
+++ b/ansible_collections/community/aws/.github/workflows/docs-push.yml
@@ -0,0 +1,40 @@
+name: Collection Docs
+concurrency:
+ group: docs-push-${{ github.sha }}
+ cancel-in-progress: true
+on:
+ push:
+ branches:
+ - main
+ - stable-*
+ tags:
+ - '*'
+ schedule:
+ - cron: '0 13 * * *'
+
+jobs:
+ build-docs:
+ permissions:
+ contents: read
+ name: Build Ansible Docs
+ uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-push.yml@main
+ with:
+ init-lenient: true
+ init-fail-on-error: true
+ extra-collections: 'git+https://github.com/ansible-collections/amazon.aws.git,main'
+ intersphinx-links: |
+ amazon_aws:https://ansible-collections.github.io/amazon.aws/branch/main/
+ ansible_devel:https://docs.ansible.com/ansible-core/devel/
+
+ publish-docs-gh-pages:
+ # use to prevent running on forks
+ if: github.repository == 'ansible-collections/community.aws'
+ permissions:
+ contents: write
+ needs: [build-docs]
+ name: Publish Ansible Docs
+ uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main
+ with:
+ artifact-name: ${{ needs.build-docs.outputs.artifact-name }}
+ secrets:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}