Skip to content

Commit

Permalink
Update R-CMD-check.yml
Browse files Browse the repository at this point in the history
- fix return code
  • Loading branch information
brownag authored Dec 8, 2023
1 parent d467b0b commit 282021f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,11 @@ jobs:
rmarkdown::render("README.Rmd")
shell: Rscript {0}

- name: Commit results
- name: Commit and push results
if: runner.os == 'Windows' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
continue-on-error: true
run: |
git add README.md
git commit -m 'Render README.Rmd' || echo "No changes to commit"
git add inst/\*
git commit -m 'Update inst' || echo "No changes to commit"
- name: Push results
if: runner.os == 'Windows' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
run: |
git push origin HEAD:${{ env.BRANCH_NAME }} || echo "No changes to commit"
git push origin HEAD:${{ env.BRANCH_NAME }}

0 comments on commit 282021f

Please sign in to comment.