Skip to content

Commit 26f16a5

Browse files
committed
Rephrase the still supported calculation to make it clearer
1 parent 955f859 commit 26f16a5

File tree

1 file changed

+2
-1
lines changed
  • .github/workflows/update-supported-enterprise-server-versions

1 file changed

+2
-1
lines changed

.github/workflows/update-supported-enterprise-server-versions/update.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def main():
3737
end_of_life_date = datetime.date.fromisoformat(release_data["end"])
3838
# The GHES version is not actually end of life until the end of the day specified by
3939
# `end_of_life_date`. Wait an extra week to be safe.
40-
if end_of_life_date > datetime.date.today() - datetime.timedelta(weeks=1):
40+
is_end_of_life = datetime.date.today() > end_of_life_date + datetime.timedelta(weeks=1)
41+
if not is_end_of_life:
4142
oldest_supported_release = release_version
4243

4344
api_compatibility_data = {

0 commit comments

Comments
 (0)