Skip to content

Commit 5441709

Browse files
committed
fix: commit and PR name date stamp
1 parent c1d08d7 commit 5441709

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

Makefile

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
current_date:=$(shell date +%F)
2+
13
install:
24
Rscript -e "install.packages(c('renv', 'pak', 'rspm'))"
35
Rscript -e "renv::restore()"
@@ -21,40 +23,36 @@ prod-flu:
2123
prod: prod-covid prod-flu update_site netlify
2224

2325
submit-covid:
24-
current_date=$(date +%D); \
2526
cd ../covid19-forecast-hub; \
2627
git pull delphi main; \
2728
git add model-output/CMU-TimeSeries/*; \
28-
git commit -am "CMU-Delphi submission $(date +%D)"; \
29+
git commit -am "CMU-Delphi submission $(current_date)"; \
2930
git push delphi main; \
30-
gh pr create --title "CMU-TimeSeries $(date +%D)" --repo cdcgov/covid19-forecast-hub
31+
gh pr create --title "CMU-TimeSeries $(current_date)" --repo cdcgov/covid19-forecast-hub
3132

3233
submit-flu:
33-
current_date=$(date +%D); \
3434
cd ../FluSight-forecast-hub; \
3535
git pull delphi main; \
3636
git add model-output/CMU-TimeSeries/*; \
37-
git commit -am "CMU-Delphi submission $(date +%D)"; \
37+
git commit -am "CMU-Delphi submission $(current_date)"; \
3838
git push delphi; \
39-
gh pr create --title "CMU-TimeSeries $(date +%D)" --repo cdcepi/FluSight-forecast-hub
39+
gh pr create --title "CMU-TimeSeries $(current_date)" --repo cdcepi/FluSight-forecast-hub
4040

4141
submit-covid-dry:
42-
current_date=$(date +%D); \
4342
cd ../covid19-forecast-hub; \
4443
git pull delphi main; \
4544
git add model-output/CMU-TimeSeries/*; \
46-
git commit -am "CMU-Delphi submission $(date +%D)"; \
45+
git commit -am "CMU-Delphi submission $(current_date)"; \
4746
git push delphi main; \
48-
gh pr create --title "CMU-TimeSeries $(date +%D)" --repo cdcgov/covid19-forecast-hub --dry-run
47+
gh pr create --title "CMU-TimeSeries $(current_date)" --repo cdcgov/covid19-forecast-hub --dry-run
4948

5049
submit-flu-dry:
51-
current_date=$(date +%D); \
5250
cd ../FluSight-forecast-hub; \
5351
git pull delphi main; \
5452
git add model-output/CMU-TimeSeries/*; \
55-
git commit -am "CMU-Delphi submission $(date +%D)"; \
53+
git commit -am "CMU-Delphi submission $(current_date)"; \
5654
git push delphi; \
57-
gh pr create --title "CMU-TimeSeries $(date +%D)" --repo cdcepi/FluSight-forecast-hub --dry-run
55+
gh pr create --title "CMU-TimeSeries $(current_date)" --repo cdcepi/FluSight-forecast-hub --dry-run
5856

5957
submit: submit-covid submit-flu
6058

0 commit comments

Comments
 (0)