From bed49aef6461cb008c9754dac2d9681baab03310 Mon Sep 17 00:00:00 2001 From: William Date: Fri, 21 Apr 2023 14:19:38 +0100 Subject: [PATCH] docs: Update update_docs.yml --- .github/workflows/update_docs.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_docs.yml b/.github/workflows/update_docs.yml index ef7ee0f..4041fb1 100644 --- a/.github/workflows/update_docs.yml +++ b/.github/workflows/update_docs.yml @@ -3,14 +3,16 @@ name: Update Docs on: push: + branches: [ 'master' ] paths: - 'docs/**' - 'workflows/update_docs.yml' - branches: - - master tags-ignore: - '*' +permissions: + contents: read + jobs: deploy-wiki: runs-on: ubuntu-latest @@ -21,6 +23,6 @@ jobs: uses: Andrew-Chen-Wang/github-wiki-action@v3 env: WIKI_DIR: docs/ - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_MAIL: ${{ github.actor }}@users.noreply.github.com - GH_NAME: ${{ github.repository_owner }} \ No newline at end of file + GH_NAME: ${{ github.repository_owner }}