File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
update-supported-enterprise-server-versions Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 2222 python-version : " 3.7"
2323 - name : Checkout CodeQL Action
2424 uses : actions/checkout@v4
25- - name : Checkout Enterprise Releases
26- uses : actions/checkout@v4
27- with :
28- repository : github/enterprise-releases
29- ssh-key : ${{ secrets.ENTERPRISE_RELEASES_SSH_KEY }}
30- path : ${{ github.workspace }}/enterprise-releases/
25+ - name : Get Enterprise Server Versions
26+ id : get-versions
27+ uses : github/enterprise-releases/actions/maintained_features@master
3128 - name : Update Supported Enterprise Server Versions
3229 run : |
3330 cd ./.github/workflows/update-supported-enterprise-server-versions/
3734 rm --recursive "$ENTERPRISE_RELEASES_PATH"
3835 npm run build
3936 env :
40- ENTERPRISE_RELEASES_PATH : ${{ github.workspace }}/enterprise-releases/
37+ MAINTAINED_RELEASES : ${{ steps.get-versions.outputs.maintained_releases }}
4138
4239 - name : Update git config
4340 run : |
Original file line number Diff line number Diff line change 77import semver
88
99_API_COMPATIBILITY_PATH = pathlib .Path (__file__ ).absolute ().parents [3 ] / "src" / "api-compatibility.json"
10- _ENTERPRISE_RELEASES_PATH = pathlib .Path (os .environ ["ENTERPRISE_RELEASES_PATH" ])
11- _RELEASE_FILE_PATH = _ENTERPRISE_RELEASES_PATH / "releases.json"
1210_FIRST_SUPPORTED_RELEASE = semver .VersionInfo .parse ("2.22.0" ) # Versions older than this did not include Code Scanning.
1311
1412def main ():
1513 api_compatibility_data = json .loads (_API_COMPATIBILITY_PATH .read_text ())
1614
17- releases = json .loads (_RELEASE_FILE_PATH . read_text () )
15+ releases = json .loads (os . environ [ "MAINTAINED_RELEASES" ] )
1816
1917 # Remove GHES version using a previous version numbering scheme.
2018 if "11.10" in releases :
You can’t perform that action at this time.
0 commit comments