mirror of
https://github.com/github/codeql-action.git
synced 2026-01-01 04:00:24 +08:00
Wait a week before dropping support for end of life GHES versions
This commit is contained in:
@@ -35,7 +35,9 @@ def main():
|
||||
|
||||
if oldest_supported_release is None or release_version < oldest_supported_release:
|
||||
end_of_life_date = datetime.date.fromisoformat(release_data["end"])
|
||||
if end_of_life_date > datetime.date.today():
|
||||
# The GHES version is not actually end of life until the end of the day specified by
|
||||
# `end_of_life_date`. Wait an extra week to be safe.
|
||||
if end_of_life_date > datetime.date.today() + datetime.timedelta(weeks=1):
|
||||
oldest_supported_release = release_version
|
||||
|
||||
api_compatibility_data = {
|
||||
|
||||
Reference in New Issue
Block a user