mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 07:03:17 +08:00
Combine exit into core; Remove toolkit (#21)
* Combine exit into core * Remove toolkit * Format * Format * Try to fix diff * Try to fix diff * Format * Add gitattributes * Use unix endings * gitattributes is not a txt file * Renormalize line endings
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import {ExitCode} from '@actions/exit'
|
||||
import {issue, issueCommand} from './command'
|
||||
|
||||
import * as path from 'path'
|
||||
@@ -11,6 +10,26 @@ export interface InputOptions {
|
||||
required?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* The code to exit an action
|
||||
*/
|
||||
export 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
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
// Variables
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user