Skip to content

Commit eddad70

Browse files
authored
Albrja/mic-5839/fail-deploy-invalid-date (#720)
Albrja/mic-5839/fail-deploy-invalid-date Fail deployment if CHANGELOG date does not match current date. - *Category*: CI - *JIRA issue*: https://jira.ihme.washington.edu/browse/MIC-5839
1 parent 2a505ab commit eddad70

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+
**3.6.6 - 01/05/26**
2+
3+
- Fail deployment if changelog date is not current date
4+
15
**3.6.5 - 12/16/25**
26

37
- Type-hinting: Fix mypy errors in framework/utilities.py

0 commit comments

Comments
 (0)