mirror of
				https://gitea.com/actions/setup-go.git
				synced 2025-11-02 07:47:10 +00:00 
			
		
		
		
	Add setup-go
This commit is contained in:
		
							
								
								
									
										29
									
								
								node_modules/@actions/exit/lib/exit.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								node_modules/@actions/exit/lib/exit.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
/**
 | 
			
		||||
 * The code to exit an action
 | 
			
		||||
 */
 | 
			
		||||
export declare enum ExitCode {
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was successful
 | 
			
		||||
     */
 | 
			
		||||
    Success = 0,
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was a failure
 | 
			
		||||
     */
 | 
			
		||||
    Failure = 1,
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action is complete, but neither succeeded nor failed
 | 
			
		||||
     */
 | 
			
		||||
    Neutral = 78
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a success.
 | 
			
		||||
 */
 | 
			
		||||
export declare function success(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a failure.
 | 
			
		||||
 */
 | 
			
		||||
export declare function failure(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action neither a success or a failure
 | 
			
		||||
 */
 | 
			
		||||
export declare function neutral(): void;
 | 
			
		||||
							
								
								
									
										44
									
								
								node_modules/@actions/exit/lib/exit.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								node_modules/@actions/exit/lib/exit.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
/**
 | 
			
		||||
 * The code to exit an action
 | 
			
		||||
 */
 | 
			
		||||
var ExitCode;
 | 
			
		||||
(function (ExitCode) {
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was successful
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Success"] = 0] = "Success";
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action was a failure
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Failure"] = 1] = "Failure";
 | 
			
		||||
    /**
 | 
			
		||||
     * A code indicating that the action is complete, but neither succeeded nor failed
 | 
			
		||||
     */
 | 
			
		||||
    ExitCode[ExitCode["Neutral"] = 78] = "Neutral";
 | 
			
		||||
})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
 | 
			
		||||
// TODO: These exit codes may not behave as expected on the new runtime, due to
 | 
			
		||||
// complexities of async logging and sync exiting.
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a success.
 | 
			
		||||
 */
 | 
			
		||||
function success() {
 | 
			
		||||
    process.exit(ExitCode.Success);
 | 
			
		||||
}
 | 
			
		||||
exports.success = success;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action as a failure.
 | 
			
		||||
 */
 | 
			
		||||
function failure() {
 | 
			
		||||
    process.exit(ExitCode.Failure);
 | 
			
		||||
}
 | 
			
		||||
exports.failure = failure;
 | 
			
		||||
/**
 | 
			
		||||
 * Exit the action neither a success or a failure
 | 
			
		||||
 */
 | 
			
		||||
function neutral() {
 | 
			
		||||
    process.exit(ExitCode.Neutral);
 | 
			
		||||
}
 | 
			
		||||
exports.neutral = neutral;
 | 
			
		||||
//# sourceMappingURL=exit.js.map
 | 
			
		||||
							
								
								
									
										1
									
								
								node_modules/@actions/exit/lib/exit.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@actions/exit/lib/exit.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"file":"exit.js","sourceRoot":"","sources":["../src/exit.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,IAAY,QAeX;AAfD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,8CAAY,CAAA;AACd,CAAC,EAfW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAenB;AAED,+EAA+E;AAC/E,kDAAkD;AAElD;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;AAChC,CAAC;AAFD,0BAEC;AAED;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;AAChC,CAAC;AAFD,0BAEC;AAED;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;AAChC,CAAC;AAFD,0BAEC"}
 | 
			
		||||
		Reference in New Issue
	
	Block a user