Skip to content

Commit

Permalink
Merge pull request #1586 from github/henrymercer/enterprise-releases-…
Browse files Browse the repository at this point in the history
…ignore-classic-version

Ignore classic GHES version when updating supported versions
  • Loading branch information
henrymercer committed Mar 17, 2023
2 parents d230601 + a252762 commit fb75ebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Update Supported Enterprise Server Versions
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
update-supported-enterprise-server-versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ def main():
api_compatibility_data = json.loads(_API_COMPATIBILITY_PATH.read_text())

releases = json.loads(_RELEASE_FILE_PATH.read_text())

# Remove GHES version using a previous version numbering scheme.
if "11.10.340" in releases:
del releases["11.10.340"]

oldest_supported_release = None
newest_supported_release = semver.VersionInfo.parse(api_compatibility_data["maximumVersion"] + ".0")

Expand Down

0 comments on commit fb75ebd

Please sign in to comment.