Skip to content

Commit

Permalink
latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Rodrigues committed Jul 11, 2024
1 parent bed0650 commit 1944893
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/make_inst_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ jobs:
- name: Install Git
run: sudo apt-get install git

- name: Get latest commit hash
id: get_latest_commit
run: echo "LATEST_COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV

- name: Generate .inst/extdata/default.nix
run: |
nix-shell ./inst/extdata/default.nix --run "Rscript -e \"library(rix);latest_commit <- sys::as_text(sys::exec_internal('git', c('rev-parse', 'master'))$stdout);print(latest_commit);rix('4.3.1', git_pkgs = list(package_name = 'rix', repo_url = 'https://github.com/b-rodrigues/rix/', branch_name = 'master', commit = latest_commit), ide = 'other', project_path = 'inst/extdata', overwrite = TRUE)\""
nix-shell ./inst/extdata/default.nix --run "Rscript -e \"library(rix);rix('4.3.1', git_pkgs = list(package_name = 'rix', repo_url = 'https://github.com/b-rodrigues/rix/', branch_name = 'master', commit = '${{ env.LATEST_COMMIT_HASH }}'), ide = 'other', project_path = 'inst/extdata', overwrite = TRUE)\""
- name: Commit and push default.nix
run: |
Expand Down

0 comments on commit 1944893

Please sign in to comment.