Skip to content

Commit 112afea

Browse files
action should fail on error
1 parent 9880ecc commit 112afea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ jobs:
2828
run: Rscript -e 'blogdown::install_hugo(version="0.152.2")' # Latest is currently broken
2929

3030
- name: Build site with blogdown
31-
run: Rscript -e "blogdown::build_site()"
31+
run: Rscript -e 'if (!blogdown::build_site()) stop("Build failed")'
3232

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: Rscript -e 'blogdown::install_hugo(version="0.152.2")' # Latest is currently broken
2929

3030
- name: Build site with blogdown
31-
run: Rscript -e "blogdown::build_site()"
31+
run: Rscript -e 'if (!blogdown::build_site()) stop("Build failed")'
3232

3333
- name: Deploy 🚀
3434
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)