Add permissions section to sync-wiki workflow for content write access #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Wiki | ||
| 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 }} | ||