Thu 2025-01-09 14:30:02 EST #3844
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
name: QAQC dam data | |
on: | |
push: | |
branches: [ ccre-dam-data ] | |
#paths: | |
#- 'ccre-waterquality.csv' | |
#workflow_dispatch: | |
jobs: | |
qaqc_run: | |
runs-on: ubuntu-22.04 | |
container: | |
image: rocker/tidyverse:4.2 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
ref: ccre-dam-data-qaqc | |
fetch-depth: 1 | |
- name: Download necessary files | |
run: | | |
wget https://raw.githubusercontent.com/FLARE-forecast/CCRE-data/ccre-dam-data/ccre-waterquality.csv | |
wget https://raw.githubusercontent.com/FLARE-forecast/CCRE-data/ccre-dam-data/ccre-met.csv | |
- name: Run QAQC script | |
run: | | |
R -e 'remotes::install_version("EDIutils", version = "1.0.2")' | |
R -e 'remotes::install_version("xml2", version = "1.3.3")' | |
R -e 'remotes::install_version("here", version = "1.0.1")' | |
R -e 'remotes::install_version("suncalc", version = "0.5.1")' | |
Rscript $GITHUB_WORKSPACE/R/QAQC_workflow.R | |
Rscript $GITHUB_WORKSPACE/R/QAQC_met_workflow.R | |
- name: Configure Git | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
- name: Commit files | |
run: | | |
git add ccre-waterquality_L1.csv | |
git add ccre_met_L1.csv | |
git commit -m "Updating QAQC files" || echo "No changes to commit" | |
git push -f || echo "No changes to commit" |