Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup-r-deps: replace github-token param with GITHUB_PAT env var #262

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/bioccheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,11 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
inputs.deps-installation-method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
github-token: ${{ steps.github-token.outputs.token }}
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}

- name: Run BiocCheck ☣️
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build-check-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,11 @@ jobs:
if: >-
env.deps_installation_method == 'setup-r-dependencies'
&& inputs.install-deps-from-package-repositories == ''
uses: insightsengineering/setup-r-dependencies@v1
uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
github-token: ${{ steps.github-token.outputs.token }}
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
skip-desc-branch: ${{ inputs.skip-desc-branch }}
skip-desc-dev: ${{ inputs.skip-desc-dev }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,11 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
inputs.deps-installation-method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
github-token: ${{ steps.github-token.outputs.token }}
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}

- name: Install R package 🚧
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ jobs:
shell: bash

- name: Install dependencies
uses: insightsengineering/setup-r-dependencies@v1
uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
skip-desc-branch: true
github-token: ${{ steps.github-token.outputs.token }}

- name: revdepcheck 🔄
id: revdepcheck
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/rhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ jobs:
with:
job-config: ${{ matrix.config.job-config }}

- uses: insightsengineering/setup-r-dependencies@v1
- uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
skip-install: true
github-token: ${{ steps.github-token.outputs.token }}
restore-description: false
install-quarto: "false"

Expand Down Expand Up @@ -148,11 +149,12 @@ jobs:
with:
job-config: ${{ matrix.config.job-config }}

- uses: insightsengineering/setup-r-dependencies@v1
- uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
skip-install: true
github-token: ${{ steps.github-token.outputs.token }}
restore-description: false
install-quarto: "false"

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/roxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
env.deps_installation_method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
github-token: ${{ steps.github-token.outputs.token }}
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}

- name: Generate man pages 📄
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,11 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
inputs.deps-installation-method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
github-token: ${{ steps.github-token.outputs.token }}
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}

- name: Install R package 🚧
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,11 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
inputs.deps-installation-method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: insightsengineering/setup-r-dependencies@rm_param_github_token
pawelru marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
github-token: ${{ steps.github-token.outputs.token }}
repository-path: ${{ env.package_subdirectory }}

- name: Build report 🏗
Expand Down
Loading