-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch from git commit docx/pdf to uploading at gh action artifacts
- Loading branch information
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ on: | |
workflow_dispatch: | ||
pull_request: | ||
branches: [ master, main, develop ] | ||
push: | ||
branches: [ gh-action-render-skeleton-rmd ] | ||
|
||
name: render-visc-empty-skeleton-rmd | ||
|
||
|
@@ -44,12 +46,18 @@ jobs: | |
run: | | ||
Rscript -e 'devtools::install()' | ||
- name: Render visc_empty Rmarkdown skeleton report and Commit Results | ||
- name: Render visc_empty Rmarkdown skeleton report | ||
run: | | ||
Rscript -e 'rmarkdown::render("inst/rmarkdown/templates/visc_empty/skeleton/skeleton.Rmd", output_format="all")' | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add inst/rmarkdown/templates/visc_empty/skeleton/skeleton.pdf | ||
git add inst/rmarkdown/templates/visc_empty/skeleton/skeleton.docx | ||
git commit -m 'Re-build visc_empty skeleton Rmd' || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" | ||
- name: Upload skeleton.pdf as GitHub action artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: visc-empty-skeleton.pdf | ||
path: inst/rmarkdown/templates/visc_empty/skeleton/skeleton.pdf | ||
|
||
- name: Upload skeleton.docx as GitHub action artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: visc-empty-skeleton.docx | ||
path: inst/rmarkdown/templates/visc_empty/skeleton/skeleton.docx |