Compare commits

...

3 Commits

Author SHA1 Message Date
Óscar San José 801a5218f3 Update update-supported-enterprise-server-versions.yml 2025-01-30 12:37:35 +01:00
Óscar San José 6a525bec36 Update update-supported-enterprise-server-versions.yml 2025-01-30 12:34:55 +01:00
Óscar San José c1ae4cee22 Use upstream action to download releases info 2025-01-29 12:54:53 +01:00
2 changed files with 16 additions and 10 deletions
@@ -14,6 +14,17 @@ jobs:
permissions:
contents: write # needed to push commits
pull-requests: write # needed to create pull request
actions: write
attestations: write
checks: write
deployments: write
discussions: write
issues: write
packages: write
pages: write
repository-projects: write
security-events: write
statuses: write
steps:
- name: Setup Python
@@ -22,12 +33,9 @@ jobs:
python-version: "3.7"
- name: Checkout CodeQL Action
uses: actions/checkout@v4
- name: Checkout Enterprise Releases
uses: actions/checkout@v4
with:
repository: github/enterprise-releases
ssh-key: ${{ secrets.ENTERPRISE_RELEASES_SSH_KEY }}
path: ${{ github.workspace }}/enterprise-releases/
- name: Get Enterprise Server Versions
id: get-versions
uses: github/enterprise-releases/actions/maintained_features@master
- name: Update Supported Enterprise Server Versions
run: |
cd ./.github/workflows/update-supported-enterprise-server-versions/
@@ -37,7 +45,7 @@ jobs:
rm --recursive "$ENTERPRISE_RELEASES_PATH"
npm run build
env:
ENTERPRISE_RELEASES_PATH: ${{ github.workspace }}/enterprise-releases/
MAINTAINED_RELEASES: ${{ steps.get-versions.outputs.maintained_releases }}
- name: Update git config
run: |
@@ -7,14 +7,12 @@ import pathlib
import semver
_API_COMPATIBILITY_PATH = pathlib.Path(__file__).absolute().parents[3] / "src" / "api-compatibility.json"
_ENTERPRISE_RELEASES_PATH = pathlib.Path(os.environ["ENTERPRISE_RELEASES_PATH"])
_RELEASE_FILE_PATH = _ENTERPRISE_RELEASES_PATH / "releases.json"
_FIRST_SUPPORTED_RELEASE = semver.VersionInfo.parse("2.22.0") # Versions older than this did not include Code Scanning.
def main():
api_compatibility_data = json.loads(_API_COMPATIBILITY_PATH.read_text())
releases = json.loads(_RELEASE_FILE_PATH.read_text())
releases = json.loads(os.environ["MAINTAINED_RELEASES"])
# Remove GHES version using a previous version numbering scheme.
if "11.10" in releases: