File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,21 @@ jobs:
3535 install.packages("pak")
3636 pak::pkg_install(c(
3737 "readr", "dplyr", "tidyr",
38- "lubridate"))
38+ "lubridate", "fs",
39+ "github::hubverse-org/hubValidations"))
3940 shell : Rscript {0}
4041 - name : Pull baseline csv files
4142 run : Rscript auxiliary-data/pull-flusight-baselines.R
43+ - name : Show validation output in logs (for debugging)
44+ run : cat validation_result.md || echo "No validation_result.md found"
45+ - name : Read validation result
46+ id : validation
47+ run : |
48+ {
49+ echo 'body<<EOF'
50+ cat validation_result.md
51+ echo 'EOF'
52+ } >> "$GITHUB_OUTPUT"
4253 - name : Commit changes and create PR 🚀
4354 if : ${{ inputs.publish || github.event_name == 'schedule' }}
4455 env :
5263 git commit -m "Pull baseline forecasts"
5364 git push --set-upstream origin create/baselines/"$PR_DATETIME"
5465 gh pr create --title "Add new baseline forecasts" \
55- --body "This PR adds new baseline forecasts. " \
66+ --body "${{ steps.validation.outputs.body }} " \
5667 --base main \
5768 --head create/baselines/"$PR_DATETIME"
5869 shell : bash
You can’t perform that action at this time.
0 commit comments