Skip to content

Commit ca6dbf9

Browse files
Update pull_baselines.yml
1 parent c329547 commit ca6dbf9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/pull_baselines.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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:
@@ -52,7 +63,7 @@ jobs:
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

0 commit comments

Comments
 (0)