From f94ab1ba016a9a05bc67aa18450b6e61b41aec83 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 24 Dec 2023 18:33:31 +0800 Subject: [PATCH] Github token --- .github/workflows/build-package.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yaml b/.github/workflows/build-package.yaml index 28dccb4..7fd2f95 100644 --- a/.github/workflows/build-package.yaml +++ b/.github/workflows/build-package.yaml @@ -73,7 +73,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: cache-version: 2 - extra-packages: any::remotes any::drat + extra-packages: any::drat - name: Update R packages repo run: | @@ -83,6 +83,8 @@ jobs: shell: Rscript {0} - name: Setup Git config + env: + GITHUB_TOKEN: ${{ secrets.GH_ACTION }} shell: bash run: | git config --global user.name 'GitHub Actions' @@ -92,6 +94,7 @@ jobs: - name: GitHub Pages action uses: peaceiris/actions-gh-pages@v3.6.1 with: + github_token: ${{ secrets.GH_ACTION }} publish_branch: gh-pages keep_files: true publish_dir: .