11import os from 'node:os' ;
2- import { basename , dirname , join as joinPaths } from 'node:path' ;
2+ import { basename , join as joinPaths } from 'node:path' ;
33import { readFile } from 'node:fs/promises' ;
44import * as core from '@actions/core' ;
55import * as exec from '@actions/exec' ;
@@ -8,7 +8,6 @@ import { VersionConfig, VERSIONS } from './versions';
88import {
99 downloadBoxInstaller ,
1010 downloadExeInstaller ,
11- downloadUpdateInstaller ,
1211 gatherInputs ,
1312 gatherSummaryFiles ,
1413 getOsVersion ,
@@ -34,15 +33,6 @@ function findOrDownloadTool(config: VersionConfig): Promise<string> {
3433 return downloadExeInstaller ( config ) ;
3534}
3635
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-
4636export default async function install ( ) {
4737 let threw = false ;
4838 const {
@@ -98,14 +88,7 @@ export default async function install() {
9888 // Initial checks complete - fetch the installer
9989 const toolPath = await core . group ( `Fetching install media for ${ version } ` , ( ) => findOrDownloadTool ( config ) ) ;
10090 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` ) ;
10992 }
11093 const instanceName = 'MSSQLSERVER' ;
11194 try {
0 commit comments