mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-11-04 07:33:45 +00:00 
			
		
		
		
	Remove version parameter
This commit is contained in:
		
							parent
							
								
									e1b1954735
								
							
						
					
					
						commit
						c367698ad0
					
				@ -4,10 +4,6 @@ author: 'GitHub'
 | 
				
			|||||||
inputs: 
 | 
					inputs: 
 | 
				
			||||||
  dotnet-version:
 | 
					  dotnet-version:
 | 
				
			||||||
    description: 'SDK version to use. E.g. 2.2.104'
 | 
					    description: 'SDK version to use. E.g. 2.2.104'
 | 
				
			||||||
# Deprecated option, do not use. Will not be supported after October 1, 2019
 | 
					 | 
				
			||||||
  version:
 | 
					 | 
				
			||||||
    description: 'Deprecated. Use dotnet-version instead. Will not be supported after October 1, 2019'
 | 
					 | 
				
			||||||
    deprecationMessage: 'The version property will not be supported after October 1, 2019. Use dotnet-version instead'
 | 
					 | 
				
			||||||
runs:
 | 
					runs:
 | 
				
			||||||
  using: 'node12'
 | 
					  using: 'node12'
 | 
				
			||||||
  main: 'lib/setup-dotnet.js'
 | 
					  main: 'lib/setup-dotnet.js'
 | 
				
			||||||
 | 
				
			|||||||
@ -1,10 +1,9 @@
 | 
				
			|||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
					var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
				
			||||||
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
					 | 
				
			||||||
    return new (P || (P = Promise))(function (resolve, reject) {
 | 
					    return new (P || (P = Promise))(function (resolve, reject) {
 | 
				
			||||||
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 | 
					        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 | 
				
			||||||
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
 | 
					        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
 | 
				
			||||||
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
 | 
					        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
 | 
				
			||||||
        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
					        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@ -27,10 +26,7 @@ function run() {
 | 
				
			|||||||
            // If not supplied then task is still used to setup proxy, auth, etc...
 | 
					            // If not supplied then task is still used to setup proxy, auth, etc...
 | 
				
			||||||
            //
 | 
					            //
 | 
				
			||||||
            console.log(`::warning::Use the v1 tag to get the last version, master may contain breaking changes and will not contain any required packages in the future. i.e. actions/setup-dotnet@v1`);
 | 
					            console.log(`::warning::Use the v1 tag to get the last version, master may contain breaking changes and will not contain any required packages in the future. i.e. actions/setup-dotnet@v1`);
 | 
				
			||||||
            let version = core.getInput('version');
 | 
					            let version = core.getInput('dotnet-version');
 | 
				
			||||||
            if (!version) {
 | 
					 | 
				
			||||||
                version = core.getInput('dotnet-version');
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            if (version) {
 | 
					            if (version) {
 | 
				
			||||||
                const dotnetInstaller = new installer.DotnetCoreInstaller(version);
 | 
					                const dotnetInstaller = new installer.DotnetCoreInstaller(version);
 | 
				
			||||||
                yield dotnetInstaller.installDotnet();
 | 
					                yield dotnetInstaller.installDotnet();
 | 
				
			||||||
 | 
				
			|||||||
@ -12,10 +12,8 @@ async function run() {
 | 
				
			|||||||
      `::warning::Use the v1 tag to get the last version, master may contain breaking changes and will not contain any required packages in the future. i.e. actions/setup-dotnet@v1`
 | 
					      `::warning::Use the v1 tag to get the last version, master may contain breaking changes and will not contain any required packages in the future. i.e. actions/setup-dotnet@v1`
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let version = core.getInput('version');
 | 
					    let version = core.getInput('dotnet-version');
 | 
				
			||||||
    if (!version) {
 | 
					
 | 
				
			||||||
      version = core.getInput('dotnet-version');
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if (version) {
 | 
					    if (version) {
 | 
				
			||||||
      const dotnetInstaller = new installer.DotnetCoreInstaller(version);
 | 
					      const dotnetInstaller = new installer.DotnetCoreInstaller(version);
 | 
				
			||||||
      await dotnetInstaller.installDotnet();
 | 
					      await dotnetInstaller.installDotnet();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user