Skip to content

Collection Docs

Collection Docs #712

name: Collection Docs
concurrency:
group: docs-push-${{ github.sha }}
cancel-in-progress: true
on:
push:
branches:
- main
tags:
- '*'
schedule:
- cron: '0 7 * * *'
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: false
init-fail-on-error: true
collection-name: sva.sentinelone
publish-docs-gh-pages:

Check failure on line 25 in .github/workflows/build-docs-and-push-to-ghpages.yml

View workflow run for this annotation

GitHub Actions / Collection Docs

Invalid workflow file

The workflow is not valid. .github/workflows/build-docs-and-push-to-ghpages.yml (Line: 25, 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'.
# use to prevent running on forks
if: github.repository == 'svalabs/sva.sentinelone'
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 }}