mirror of
https://github.com/zadam/trilium.git
synced 2025-12-08 08:24:24 +01:00
fix(docs): have this ci use explicit token
This commit is contained in:
parent
307e17f9c8
commit
b2c869d7ab
11
.github/workflows/sync-docs-to-wiki.yml
vendored
11
.github/workflows/sync-docs-to-wiki.yml
vendored
@ -8,6 +8,13 @@ on:
|
|||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
workflow_dispatch: # Allow manual triggering
|
workflow_dispatch: # Allow manual triggering
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read # Read access to repository contents
|
||||||
|
# Note: Writing to wiki requires a PAT or GITHUB_TOKEN with additional permissions
|
||||||
|
# The default GITHUB_TOKEN cannot write to wikis, so we need to:
|
||||||
|
# 1. Create a Personal Access Token (PAT) with 'repo' scope
|
||||||
|
# 2. Add it as a repository secret named WIKI_TOKEN
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync-wiki:
|
sync-wiki:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -23,7 +30,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repository: TriliumNext/Trilium.wiki
|
repository: TriliumNext/Trilium.wiki
|
||||||
path: wiki
|
path: wiki
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.WIKI_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@ -57,4 +64,4 @@ jobs:
|
|||||||
Triggered by: ${{ github.event.head_commit.message }}"
|
Triggered by: ${{ github.event.head_commit.message }}"
|
||||||
git push
|
git push
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.WIKI_TOKEN }}
|
||||||
Loading…
x
Reference in New Issue
Block a user