From 927e6056a58d13afc2481f02feaaad2c310ec3b9 Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Thu, 26 Sep 2024 06:54:34 +0200 Subject: [PATCH] feat(datasource/github-runners): add macOS 15 beta images (#31629) --- lib/modules/datasource/github-runners/index.spec.ts | 3 +++ lib/modules/datasource/github-runners/index.ts | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/modules/datasource/github-runners/index.spec.ts b/lib/modules/datasource/github-runners/index.spec.ts index aa2bcbd3e8effe..f58a36a8fe9521 100644 --- a/lib/modules/datasource/github-runners/index.spec.ts +++ b/lib/modules/datasource/github-runners/index.spec.ts @@ -39,6 +39,9 @@ describe('modules/datasource/github-runners/index', () => { { version: '14-xlarge' }, { version: '14-large' }, { version: '14' }, + { version: '15-xlarge', isStable: false }, + { version: '15-large', isStable: false }, + { version: '15', isStable: false }, ], sourceUrl: 'https://github.com/actions/runner-images', }); diff --git a/lib/modules/datasource/github-runners/index.ts b/lib/modules/datasource/github-runners/index.ts index 71dc33436a870e..71857166f0e90a 100644 --- a/lib/modules/datasource/github-runners/index.ts +++ b/lib/modules/datasource/github-runners/index.ts @@ -10,7 +10,10 @@ export class GithubRunnersDatasource extends Datasource { 'We use the URL: https://github.com/actions/runner-images.'; /** - * Only add stable runners to the datasource. See datasource readme for details. + * Unstable runners must have the `isStable: false` property. + * Deprecated runners must have the `isDeprecated: true` property. + * Stable runners should have no extra properties. + * For more details, read the github-runners datasource readme. */ private static readonly releases: Record = { ubuntu: [ @@ -21,6 +24,9 @@ export class GithubRunnersDatasource extends Datasource { { version: '16.04', isDeprecated: true }, ], macos: [ + { version: '15', isStable: false }, + { version: '15-large', isStable: false }, + { version: '15-xlarge', isStable: false }, { version: '14' }, { version: '14-large' }, { version: '14-xlarge' },