From 5d7d5707498cfba3d358f43bd9772104bc4e4775 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 12 May 2022 15:00:40 +0100 Subject: [PATCH] [github actions] Pass GITHUB_TOKEN to docfx job I'm still winging it. I have no idea how to fix this bug because the action in question is beyond my control. https://github.com/maxheld83/ghpages/issues/31 ^ This issue claims the linked issue provides a fix. Wasn't able to follow, so I'm just passing this token because... why not at this point? I'm getting tired of making commits that fails CI. I just want to watch Better Call Saul. --- .github/workflows/docfx.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docfx.yml b/.github/workflows/docfx.yml index b4ae248..b797991 100644 --- a/.github/workflows/docfx.yml +++ b/.github/workflows/docfx.yml @@ -14,10 +14,9 @@ jobs: name: Build Documentation with: args: docfx_project/docfx.json - env: - GH_PAT: ${{ secrets.GH_PAT }} - uses: maxheld83/ghpages@master name: Publish Documentation on GitHub Pages env: BUILD_DIR: docfx_project/_site GH_PAT: ${{ secrets.GH_PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}