Skip to content

Drop CentOS 8 testing, add Ansible 2.17 testing and fix issue installing Smallstep CLI packages > v0.27.2 #22

Drop CentOS 8 testing, add Ansible 2.17 testing and fix issue installing Smallstep CLI packages > v0.27.2

Drop CentOS 8 testing, add Ansible 2.17 testing and fix issue installing Smallstep CLI packages > v0.27.2 #22

Workflow file for this run

name: Collection Docsite (Pull Request)
on:
pull_request:
types: [opened, synchronize, reopened, closed]
paths:
- "docs/**"
- "plugins/modules/**"
- "roles/*/meta/**"
env:
GHP_BASE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
jobs:
build_docs:
permissions:
contents: read
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
with:
collection-name: trfore.smallstep
init-fail-on-error: true
init-copyright: trfore.smallstep contributors
init-project: trfore.smallstep
init-title: trfore.smallstep
squash-hierarchy: true
init-extra-html-theme-options: |
documentation_home_url=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/branch/main/
render-file-line: "> * `$<status>` [$<path_tail>](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/pr/${{ github.event.number }}/$<path_tail>)"
publish_gh_pages:

Check failure on line 29 in .github/workflows/docsite-pr.yml

View workflow run for this annotation

GitHub Actions / Collection Docsite (Pull Request)

Invalid workflow file

The workflow is not valid. .github/workflows/docsite-pr.yml (Line: 29, Col: 3): Error calling workflow 'ansible-community/github-docs-build/.github/workflows/_shared-docs-build-publish-gh-pages.yml@main'. The nested job 'publish-gh-pages' is requesting 'pages: write, id-token: write', but is only allowed 'pages: none, id-token: none'.
permissions:
contents: write
needs: build_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 }}
action: ${{ (github.event.action == 'closed' || needs.build_docs.outputs.changed != 'true') && 'teardown' || 'publish' }}
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
comment:
permissions:
pull-requests: write
runs-on: ubuntu-latest
needs:
- build_docs
- publish_gh_pages
steps:
- uses: ansible-community/github-docs-build/actions/ansible-docs-build-comment@main
with:
body-includes: "## Docs Build"
action: ${{ needs.build_docs.outputs.changed != 'true' && 'remove' || '' }}
on-closed-body: |
## Docs Build
This PR is closed and any previously published docsite has been unpublished.
on-merged-body: |
## Docs Build
This PR has been merged and the docs are now incorporated into `main`:
${{ env.GHP_BASE_URL }}
body: |
## Docs Build
The docs for **this PR** have been published here:
${{ env.GHP_BASE_URL }}/pr/${{ github.event.number }}
You can compare to the docs for the `main` branch here:
${{ env.GHP_BASE_URL }}/branch/main
The docsite for **this PR** is also available for download as an artifact from this run:
${{ needs.build_docs.outputs.artifact-url }}
File changes:
${{ needs.build_docs.outputs.diff-files-rendered }}
${{ needs.build_docs.outputs.diff-rendered }}