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" ) |>