Skip to content

Commit

Permalink
pak github action: install from the branch which triggered the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Feb 25, 2025
1 parent cd56f6b commit 7c69da1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/install_by_pak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

steps:
- uses: actions/checkout@v4
Expand All @@ -48,4 +49,6 @@ jobs:
run: Rscript -e 'install.packages("pak")'

- name: Install OmnipathR from git by pak
run: Rscript -e 'pak::pkg_install("saezlab/OmnipathR")'
run: |
Rscript -e \
'pak::pkg_install("saezlab/OmnipathR@'${{ env.BRANCH_NAME }}'")'

0 comments on commit 7c69da1

Please sign in to comment.