From 98938a718c86519608bcc02033aa517c96d291b6 Mon Sep 17 00:00:00 2001 From: statnmap Date: Sat, 25 Sep 2021 23:46:09 +0200 Subject: [PATCH] global env in CI --- .github/workflows/build_bookdown_pr.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_bookdown_pr.yml b/.github/workflows/build_bookdown_pr.yml index 4d9a6825..bee0c93a 100644 --- a/.github/workflows/build_bookdown_pr.yml +++ b/.github/workflows/build_bookdown_pr.yml @@ -3,6 +3,9 @@ on: branches: - master +env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + name: renderbookpr jobs: @@ -45,13 +48,9 @@ jobs: - name: Before build run: Rscript prep.R - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - name: Render Book run: Rscript -e 'bookdown::render_book("index.Rmd")' - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v2 with: