-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing version of YML that saves artifacts
- Loading branch information
1 parent
09d1f21
commit 3c6d394
Showing
1 changed file
with
48 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
### https://github.com/actions/upload-artifact | ||
### https://github.blog/changelog/2021-11-10-github-actions-input-types-for-manual-workflows/ | ||
### For uploading artifacts: | ||
### "path:" is the output path where Pandoc will write the compiled PDF. | ||
### Note, this should be the same directory as the input paper.md | ||
name: Compile main FrEDI Data | ||
description: Compile and test main FrEDI data | ||
|
||
on: [push] | ||
|
||
jobs: | ||
compile_data: | ||
runs-on: ubuntu-latest | ||
name: Process Data | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: R Setup | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Install packages | ||
run: | | ||
Rscript -e 'install.packages("tidyverse")' | ||
Rscript -e 'install.packages("openxlsx")' | ||
Rscript -e 'install.packages("devtools")' | ||
- name: Run createsystemData | ||
run: source("createsystemData_main.R") | ||
|
||
- name: Upload Tests | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Data | ||
path: | | ||
./data_tests/ | ||
./data/tmp_sysdata.rda | ||
# - name: Commit results | ||
# run: | | ||
# git config --local core.autocrlf false | ||
# git config --local user.email "${{ github.actor }}@users.noreply.github.com" | ||
# git config --local user.name "${{ github.actor }}" | ||
# git add data/sysdata** | ||
# git pull origin ${{ github.head_ref }} --autostash --rebase -X ours | ||
# git commit -a -m "Compiled main FrEDI data" | ||
# git push | ||
|