Skip to content

Commit

Permalink
#51: setup to use dev and main branch case studies
Browse files Browse the repository at this point in the history
Co-authored-by Bai-Li-NOAA
<[email protected]>
  • Loading branch information
k-doering-NOAA committed Feb 11, 2025
1 parent 87494a7 commit f818696
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/render.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
on:
pull_request:
branches: main
branches:
- main
- dev
push:
branches:
- dev
workflow_dispatch:
schedule:
- cron: '30 0 * * 0' # runs At 00:00 on Sunday
Expand Down
11 changes: 10 additions & 1 deletion content/setup.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@ if (any(installed_packages == FALSE)) {
}
remotes::install_github("kaskr/TMB_contrib_R/TMBhelper")
remotes::install_github("NOAA-FIMS/FIMS")
# Install FIMS: main branch version if on main, dev version on any other branch
on_main_branch <- system("git branch --show-current") == "main"
if (on_main_branch){
remotes::install_github("NOAA-FIMS/FIMS")
} else {
remotes::install_github("NOAA-FIMS/FIMS", ref = "dev")
}
remotes::install_github("r4ss/r4ss")
# Load packages
invisible(lapply(packages, library, character.only = TRUE))
Expand Down

0 comments on commit f818696

Please sign in to comment.