diff --git a/lib/modules/manager/github-actions/extract.spec.ts b/lib/modules/manager/github-actions/extract.spec.ts index 1a87d2ed4b880beb83e308708745924ff633ba5b..4a305d131604453e7fc9fdee7575ac44284ace97 100644 --- a/lib/modules/manager/github-actions/extract.spec.ts +++ b/lib/modules/manager/github-actions/extract.spec.ts @@ -664,6 +664,7 @@ describe('modules/manager/github-actions/extract', () => { currentValue: '16.x', datasource: 'github-releases', versioning: 'node', + extractVersion: '^(?<version>\\d+\\.\\d+\\.\\d+)(-\\d+)?$', depType: 'uses-with', }, { @@ -672,6 +673,7 @@ describe('modules/manager/github-actions/extract', () => { currentValue: '20.0.0', datasource: 'github-releases', versioning: 'node', + extractVersion: '^(?<version>\\d+\\.\\d+\\.\\d+)(-\\d+)?$', depType: 'uses-with', }, { @@ -680,6 +682,7 @@ describe('modules/manager/github-actions/extract', () => { currentValue: '1.23', datasource: 'github-releases', versioning: 'npm', + extractVersion: '^(?<version>\\d+\\.\\d+\\.\\d+)(-\\d+)?$', depType: 'uses-with', }, { @@ -688,6 +691,7 @@ describe('modules/manager/github-actions/extract', () => { currentValue: '>=3.8.0 <3.10.0', datasource: 'github-releases', versioning: 'npm', + extractVersion: '^(?<version>\\d+\\.\\d+\\.\\d+)(-\\d+)?$', depType: 'uses-with', }, { @@ -696,6 +700,7 @@ describe('modules/manager/github-actions/extract', () => { currentValue: 'latest', datasource: 'github-releases', versioning: 'node', + extractVersion: '^(?<version>\\d+\\.\\d+\\.\\d+)(-\\d+)?$', depType: 'uses-with', }, ]); diff --git a/lib/modules/manager/github-actions/extract.ts b/lib/modules/manager/github-actions/extract.ts index ceb02cba4fec6fc56d93f2e9ea8cdec897fc8775..914a953307d26c7a19ce5444fd8f58bbcb3c3a15 100644 --- a/lib/modules/manager/github-actions/extract.ts +++ b/lib/modules/manager/github-actions/extract.ts @@ -260,6 +260,7 @@ function extractWithYAMLParser( depName: action, packageName: `actions/${action}-versions`, ...actionData, + extractVersion: '^(?<version>\\d+\\.\\d+\\.\\d+)(-\\d+)?$', // Actions release tags are like 1.24.1-13667719799 currentValue, depType: 'uses-with', });