From b01a14345b6b2b18ef92b06ff72036baed7299f3 Mon Sep 17 00:00:00 2001 From: Lextuga007 Date: Sat, 20 Apr 2024 18:04:09 +0100 Subject: [PATCH] Moved GITHUB_PAT in gh-action --- .github/workflows/quarto-publish.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/quarto-publish.yml b/.github/workflows/quarto-publish.yml index 59649fc..7d27ed3 100644 --- a/.github/workflows/quarto-publish.yml +++ b/.github/workflows/quarto-publish.yml @@ -26,9 +26,9 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} runs-on: ubuntu-latest + container: + image: ghcr.io/dukestatsci/r_gh_actions:latest steps: - uses: actions/checkout@v4 @@ -41,14 +41,17 @@ jobs: run: | remotes::install_github("nhs-r-community/NHSRpostcodetools") shell: Rscript {0} + env: + GITHUB_PAT: ${{ secrets.GH_PAT }} - name: Install NHSRpopulation run: | remotes::install_github("nhs-r-community/NHSRpopulation") shell: Rscript {0} - - + env: + GITHUB_PAT: ${{ secrets.GH_PAT }} + - name: Build site run: | quarto render