Use astral-sh/versions as primary version provider

This commit is contained in:
Kevin Stillhammer 2026-03-12 10:23:40 +01:00
parent 0f6ec07aaf
commit 9e0614a07d
No known key found for this signature in database
28 changed files with 2022 additions and 41294 deletions

View file

@ -19,7 +19,7 @@ categories:
labels:
- "maintenance"
- "ci"
- "update-known-versions"
- "update-known-checksums"
- title: "📚 Documentation"
labels:
- "documentation"

View file

@ -1,4 +1,4 @@
name: "Update known versions"
name: "Update known checksums"
on:
workflow_dispatch:
schedule:
@ -21,13 +21,11 @@ jobs:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
- name: Update known versions
id: update-known-versions
- name: Update known checksums
id: update-known-checksums
run:
node dist/update-known-versions/index.js
node dist/update-known-checksums/index.js
src/download/checksum/known-checksums.ts
version-manifest.json
${{ secrets.GITHUB_TOKEN }}
- name: Check for changes
id: changes-exist
run: |
@ -48,10 +46,10 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add .
git commit -m "chore: update known versions for $LATEST_VERSION"
git commit -m "chore: update known checksums for $LATEST_VERSION"
git push origin HEAD:refs/heads/main
env:
LATEST_VERSION: ${{ steps.update-known-versions.outputs.latest-version }}
LATEST_VERSION: ${{ steps.update-known-checksums.outputs.latest-version }}
- name: Create Pull Request
if: ${{ steps.changes-exist.outputs.changes-exist == 'true' && steps.commit-and-push.outcome != 'success' }}
@ -60,11 +58,11 @@ jobs:
commit-message: "chore: update known checksums"
title:
"chore: update known checksums for ${{
steps.update-known-versions.outputs.latest-version }}"
steps.update-known-checksums.outputs.latest-version }}"
body:
"chore: update known checksums for ${{
steps.update-known-versions.outputs.latest-version }}"
steps.update-known-checksums.outputs.latest-version }}"
base: main
labels: "automated-pr,update-known-versions"
branch: update-known-versions-pr
labels: "automated-pr,update-known-checksums"
branch: update-known-checksums-pr
delete-branch: true