Skip to content

Commit

Permalink
get hugoversion from file
Browse files Browse the repository at this point in the history
  • Loading branch information
drmowinckels committed Apr 18, 2024
1 parent 2fcb3c8 commit 0228b52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ options(
blogdown.ext = ".Rmd",
blogdown.subdir = "blog",
blogdown.title_case = TRUE,
blogdown.hugo.version = "0.111.2",
blogdown.hugo.version = readLines(".hugoversion"),

renv.config.sandbox.enabled = FALSE,
renv.config.auto.snapshot = FALSE
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
steps:
- name: Set env parameters
run: |
ver=$(cat .Rprofile | grep hugo.version | cut -d"=" -f2 | sed -e s.\"..g | sed -e s.\ ..g | sed -e s.,..g)
ver=$(cat .hugoversion)
echo "hugovr=$ver" >> $GITHUB_ENV
echo "repo_owner=$(dirname ${{ env.repo_name }})" >> $GITHUB_ENV
echo "repo_name=$(basename ${{ env.repo_name }})" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- name: Set env parameters
run: |
ver=$(cat .Rprofile | grep hugo.version | cut -d"=" -f2 | sed -e s.\"..g | sed -e s.\ ..g | sed -e s.,..g)
ver=$(cat .hugoversion)
echo "hugovr=$ver" >> $GITHUB_ENV
- name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions .hugoversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.111.2

0 comments on commit 0228b52

Please sign in to comment.