mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 18:32:52 +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
|
||||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy to GitHub Pages
|
||||
|
@ -488,6 +491,9 @@ on:
|
|||
push:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
test-deploy:
|
||||
if: github.event_name != 'push'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue