1
1
import os from 'node:os' ;
2
- import { basename , dirname , join as joinPaths } from 'node:path' ;
2
+ import { basename , join as joinPaths } from 'node:path' ;
3
3
import { readFile } from 'node:fs/promises' ;
4
4
import * as core from '@actions/core' ;
5
5
import * as exec from '@actions/exec' ;
@@ -8,7 +8,6 @@ import { VersionConfig, VERSIONS } from './versions';
8
8
import {
9
9
downloadBoxInstaller ,
10
10
downloadExeInstaller ,
11
- downloadUpdateInstaller ,
12
11
gatherInputs ,
13
12
gatherSummaryFiles ,
14
13
getOsVersion ,
@@ -34,15 +33,6 @@ function findOrDownloadTool(config: VersionConfig): Promise<string> {
34
33
return downloadExeInstaller ( config ) ;
35
34
}
36
35
37
- function findOrDownloadUpdates ( config : VersionConfig ) : Promise < string > {
38
- const toolPath = tc . find ( 'sqlupdate' , config . version ) ;
39
- if ( toolPath ) {
40
- core . info ( `Found in cache @ ${ toolPath } ` ) ;
41
- return Promise . resolve ( joinPaths ( toolPath , 'sqlupdate.exe' ) ) ;
42
- }
43
- return downloadUpdateInstaller ( config ) ;
44
- }
45
-
46
36
export default async function install ( ) {
47
37
let threw = false ;
48
38
const {
@@ -98,14 +88,7 @@ export default async function install() {
98
88
// Initial checks complete - fetch the installer
99
89
const toolPath = await core . group ( `Fetching install media for ${ version } ` , ( ) => findOrDownloadTool ( config ) ) ;
100
90
if ( installUpdates ) {
101
- if ( ! config . updateUrl ) {
102
- core . info ( 'Skipping update installation - version not supported' ) ;
103
- } else {
104
- const updatePath = await core . group ( `Fetching cumulative updates for ${ version } ` , ( ) => findOrDownloadUpdates ( config ) ) ;
105
- if ( updatePath ) {
106
- installArgs . push ( '/UPDATEENABLED=1' , `/UpdateSource=${ dirname ( updatePath ) } ` ) ;
107
- }
108
- }
91
+ installArgs . push ( '/UPDATEENABLED=1' , `/UpdateSource=MU` ) ;
109
92
}
110
93
const instanceName = 'MSSQLSERVER' ;
111
94
try {
0 commit comments