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 }}