Skip to content

Add permissions section to sync-wiki workflow for content write access #3

Add permissions section to sync-wiki workflow for content write access

Add permissions section to sync-wiki workflow for content write access #3

Workflow file for this run

name: Sync Wiki

Check failure on line 1 in .github/workflows/sync-wiki.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sync-wiki.yml

Invalid workflow file

(Line: 11, Col: 1): Unexpected value 'Permissions'
on:
push:
branches:
- main
paths:
- 'docs/wiki/**'
workflow_dispatch:
Permissions:
contents: write
jobs:
sync-wiki:
runs-on: ubuntu-latest
name: Sync Documentation to Wiki
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sync to Wiki
uses: Andrew-Chen-Wang/github-wiki-action@v4
with:
path: docs/wiki
token: ${{ secrets.GITHUB_TOKEN }}