Skip to content

Commit

Permalink
global env in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
statnmap committed Sep 25, 2021
1 parent a7bf688 commit 98938a7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build_bookdown_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
branches:
- master

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

name: renderbookpr

jobs:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 98938a7

Please sign in to comment.