Skip to content

Commit 5aed9f7

Browse files
committed
Update workflow to use update-ghes-versions.ts
1 parent f9feddd commit 5aed9f7

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

‎.github/workflows/update-supported-enterprise-server-versions.yml‎

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010
paths:
1111
- .github/workflows/update-supported-enterprise-server-versions.yml
12-
- .github/workflows/update-supported-enterprise-server-versions/update.py
12+
- pr-checks/update-ghes-versions.ts
1313

1414
jobs:
1515
update-supported-enterprise-server-versions:
@@ -22,31 +22,37 @@ jobs:
2222
pull-requests: write # needed to create pull request
2323

2424
steps:
25-
- name: Setup Python
26-
uses: actions/setup-python@v6
27-
with:
28-
python-version: "3.13"
2925
- name: Checkout CodeQL Action
3026
uses: actions/checkout@v6
27+
28+
- name: Set up Node.js
29+
uses: actions/setup-node@v6
30+
with:
31+
node-version: 24
32+
cache: 'npm'
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
3137
- name: Checkout Enterprise Releases
3238
uses: actions/checkout@v6
3339
with:
3440
repository: github/enterprise-releases
3541
token: ${{ secrets.ENTERPRISE_RELEASE_TOKEN }}
3642
path: ${{ github.workspace }}/enterprise-releases/
3743
sparse-checkout: releases.json
44+
3845
- name: Update Supported Enterprise Server Versions
46+
working-directory: pr-checks
3947
run: |
40-
cd ./.github/workflows/update-supported-enterprise-server-versions/
41-
python3 -m pip install pipenv
42-
pipenv install
43-
pipenv run ./update.py
48+
npx tsx update-ghes-versions.ts
4449
rm --recursive "$ENTERPRISE_RELEASES_PATH"
45-
npm ci
46-
npm run build
4750
env:
4851
ENTERPRISE_RELEASES_PATH: ${{ github.workspace }}/enterprise-releases/
4952

53+
- name: Rebuild
54+
run: npm run build
55+
5056
- name: Update git config
5157
run: |
5258
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)