mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-09 14:22:27 +02:00
docs: add "permissions.content: write" to GH workflow examples (#8877)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
2b994262b0
commit
35183d7d87
1 changed files with 6 additions and 0 deletions
|
@ -390,6 +390,9 @@ on:
|
||||||
# Review gh actions docs if you want to further define triggers, paths, etc
|
# Review gh actions docs if you want to further define triggers, paths, etc
|
||||||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
|
@ -488,6 +491,9 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-deploy:
|
test-deploy:
|
||||||
if: github.event_name != 'push'
|
if: github.event_name != 'push'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue