docs: Tweak script

This commit is contained in:
William 2023-04-21 14:23:58 +01:00
parent 380335b14d
commit 46b93203f7
No known key found for this signature in database
2 changed files with 7 additions and 6 deletions

View File

@ -6,8 +6,7 @@ on:
branches: [ 'master' ] branches: [ 'master' ]
paths-ignore: paths-ignore:
- 'docs/**' - 'docs/**'
- 'workflows/pr_tests.yml' - 'workflows/**'
- 'workflows/update_docs.yml'
- 'README.md' - 'README.md'
permissions: permissions:

View File

@ -3,14 +3,16 @@ name: Update Docs
on: on:
push: push:
branches: [ 'master' ]
paths: paths:
- 'docs/**' - 'docs/**'
- 'workflows/update_docs.yml' - 'workflows/**'
branches:
- master
tags-ignore: tags-ignore:
- '*' - '*'
permissions:
contents: read
jobs: jobs:
deploy-wiki: deploy-wiki:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -21,6 +23,6 @@ jobs:
uses: Andrew-Chen-Wang/github-wiki-action@v3 uses: Andrew-Chen-Wang/github-wiki-action@v3
env: env:
WIKI_DIR: docs/ WIKI_DIR: docs/
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_MAIL: ${{ github.actor }}@users.noreply.github.com GH_MAIL: ${{ github.actor }}@users.noreply.github.com
GH_NAME: ${{ github.repository_owner }} GH_NAME: ${{ github.repository_owner }}