mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 11:53:12 +00:00
Merge pull request #394 from gardar/fix-docs-push-permissions
skip_changelog(ci): fix docs publish permissions
This commit is contained in:
commit
6662e567d9
2 changed files with 6 additions and 0 deletions
3
.github/workflows/docs-pr.yml
vendored
3
.github/workflows/docs-pr.yml
vendored
|
@ -54,11 +54,14 @@ jobs:
|
|||
if: github.repository == 'prometheus-community/ansible'
|
||||
permissions:
|
||||
contents: write
|
||||
pages: write
|
||||
id-token: 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 }}
|
||||
publish-gh-pages-branch: true
|
||||
action: ${{ (github.event.action == 'closed' || needs.build-docs.outputs.changed != 'true') && 'teardown' || 'publish' }}
|
||||
secrets:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
3
.github/workflows/docs-push.yml
vendored
3
.github/workflows/docs-push.yml
vendored
|
@ -56,10 +56,13 @@ jobs:
|
|||
if: github.repository == 'prometheus-community/ansible'
|
||||
permissions:
|
||||
contents: write
|
||||
pages: write
|
||||
id-token: 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 }}
|
||||
publish-gh-pages-branch: true
|
||||
secrets:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue