-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(update-lockfile): Use pak instead of renv
- Loading branch information
1 parent
6fbaf62
commit 7ecd29d
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
required: true | ||
|
||
jobs: | ||
update-renv: | ||
update-lockfile: | ||
name: 🛠️ Store dependency versions | ||
if: ${{ inputs.run }} | ||
runs-on: ubuntu-latest | ||
|
@@ -29,10 +29,10 @@ jobs: | |
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: ${{ inputs.cache_version }} | ||
extra-packages: any::renv | ||
extra-packages: any::pak | ||
|
||
- name: Update the renv.lock file | ||
run: renv::snapshot(prompt = FALSE) | ||
- name: Update the pkg.lock file | ||
run: pak::lockfile_create(".") | ||
shell: Rscript {0} | ||
|
||
- name: Commit and push changes | ||
|
@@ -41,5 +41,5 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git switch ${{ inputs.branch_name }} | ||
git add man/\* NAMESPACE DESCRIPTION | ||
git commit -m "chore: update renv.lock" || echo "No changes to commit" | ||
git commit -m "chore: update pkg.lock" || echo "No changes to commit" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters