Skip to content

Commit 2f9c04f

Browse files
authored
Fail deploy if changelog date is wrong (#103)
Albrja/mic-5839/Fail deployment with bad date Fail deployment on bad changelog date - *Category*: Release - *JIRA issue*: https://jira.ihme.washington.edu/browse/MIC-XYZ
1 parent d73ded1 commit 2f9c04f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ jobs:
1111
id-token: write
1212
steps:
1313
- uses: actions/checkout@v3
14+
- name: Validate Release Date
15+
run: |
16+
CHANGELOG_DATE=$(head -n 1 CHANGELOG.rst | grep -oP '\d{2}/\d{2}/\d{2}')
17+
TODAY=$(date +%m/%d/%y)
18+
if [ "$CHANGELOG_DATE" != "$TODAY" ]; then
19+
echo "CHANGELOG date: $CHANGELOG_DATE"
20+
echo "Today's date: $TODAY"
21+
echo "Please update the CHANGELOG.rst with today's date before releasing."
22+
exit 1
23+
fi
1424
- name: Set up Python
1525
uses: actions/setup-python@v4
1626
with:

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**0.3.1 - 01/06/26**
2+
3+
- Fail deployment if changelog date does not match current date
4+
15
**0.3.0 - 12/12/25**
26

37
- Phase 1 Automated Validation, ValidationContext component for simulation validation

0 commit comments

Comments
 (0)