From f755c8c1ed3a36936f4425b090df8addeb899a79 Mon Sep 17 00:00:00 2001 From: Sebastian Funk Date: Thu, 1 Aug 2024 09:51:53 +0100 Subject: [PATCH] update pub gha --- .github/workflows/update-publications.yaml | 4 +++- snippets/update_publications.R | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-publications.yaml b/.github/workflows/update-publications.yaml index 390f43a..df96ec2 100644 --- a/.github/workflows/update-publications.yaml +++ b/.github/workflows/update-publications.yaml @@ -26,7 +26,9 @@ jobs: - uses: r-lib/actions/setup-renv@v2 - name: Create bibtex file with selected entries - run: source("snippets/update_publications.R") + run: | + gh_repository <- ${{ github.repository }} + source("snippets/update_publications.R") shell: Rscript {0} - uses: peter-evans/create-pull-request@v6 diff --git a/snippets/update_publications.R b/snippets/update_publications.R index 9ba2e54..93d0de5 100644 --- a/snippets/update_publications.R +++ b/snippets/update_publications.R @@ -1,6 +1,6 @@ last_comment_pubs <- gh::gh( "/repos/{gh_repo}/issues/{issue_number}/comments", - gh_repo = "${{ github.repository }}", + gh_repo = gh_repository, issue_number = 3, .accept = "application/vnd.github.v3.full+json" ) |>