@@ -14,21 +14,21 @@ type MockedFunction<TFunc> = TFunc extends (...args: infer TArgs) => infer TRetu
1414 * Writes a debug message to the user log.
1515 * @param message - The debug message to log.
1616 */
17- export const debug : MockedFunction < ( message : string ) => void > = vi . fn ( ( message : string ) : void => { } ) ;
17+ export const debug : MockedFunction < ( message : string ) => void > = vi . fn ( ( _message : string ) : void => { } ) ;
1818
1919/**
2020 * Writes an informational message to the log.
2121 * @param message - The info message to log.
2222 */
23- export const info : MockedFunction < ( message : string ) => void > = vi . fn ( ( message : string ) : void => { } ) ;
23+ export const info : MockedFunction < ( message : string ) => void > = vi . fn ( ( _message : string ) : void => { } ) ;
2424
2525/**
2626 * Adds a warning issue with optional annotation properties.
2727 * @param message - The warning message or error.
2828 * @param properties - Optional properties to add to the annotation.
2929 */
3030export const warning : MockedFunction < ( message : string | Error , properties ?: AnnotationProperties ) => void > = vi . fn (
31- ( message : string | Error , properties ?: AnnotationProperties ) : void => { } ,
31+ ( _message : string | Error , _properties ?: AnnotationProperties ) : void => { } ,
3232) ;
3333
3434/**
@@ -37,7 +37,7 @@ export const warning: MockedFunction<(message: string | Error, properties?: Anno
3737 * @param properties - Optional properties to add to the annotation.
3838 */
3939export const notice : MockedFunction < ( message : string | Error , properties ?: AnnotationProperties ) => void > = vi . fn (
40- ( message : string | Error , properties ?: AnnotationProperties ) : void => { } ,
40+ ( _message : string | Error , _properties ?: AnnotationProperties ) : void => { } ,
4141) ;
4242
4343/**
@@ -46,7 +46,7 @@ export const notice: MockedFunction<(message: string | Error, properties?: Annot
4646 * @param properties - Optional properties to add to the annotation.
4747 */
4848export const error : MockedFunction < ( message : string | Error , properties ?: AnnotationProperties ) => void > = vi . fn (
49- ( message : string | Error , properties ?: AnnotationProperties ) : void => { } ,
49+ ( _message : string | Error , _properties ?: AnnotationProperties ) : void => { } ,
5050) ;
5151
5252/**
@@ -55,13 +55,13 @@ export const error: MockedFunction<(message: string | Error, properties?: Annota
5555 * @param message - The error message or object.
5656 * @throws An error with the specified message.
5757 */
58- export const setFailed : MockedFunction < ( message : string | Error ) => void > = vi . fn ( ( message : string | Error ) => { } ) ;
58+ export const setFailed : MockedFunction < ( message : string | Error ) => void > = vi . fn ( ( _message : string | Error ) => { } ) ;
5959
6060/**
6161 * Begins a new output group. Output until the next `endGroup` will be foldable in this group.
6262 * @param name - The name of the output group.
6363 */
64- export const startGroup : MockedFunction < ( name : string ) => void > = vi . fn ( ( name : string ) : void => { } ) ;
64+ export const startGroup : MockedFunction < ( name : string ) => void > = vi . fn ( ( _name : string ) : void => { } ) ;
6565
6666/**
6767 * Ends the current output group.
@@ -109,36 +109,36 @@ export const getMultilineInput: MockedFunction<(name: string, options?: InputOpt
109109 * Masks a value in the log. When the masked value appears in the log, it is replaced with asterisks.
110110 * @param secret - Value to mask
111111 */
112- export const setSecret : MockedFunction < ( secret : string ) => void > = vi . fn ( ( secret : string ) : void => { } ) ;
112+ export const setSecret : MockedFunction < ( secret : string ) => void > = vi . fn ( ( _secret : string ) : void => { } ) ;
113113
114114/**
115115 * Prepends the given path to the PATH environment variable.
116116 * @param inputPath - Path to prepend
117117 */
118- export const addPath : MockedFunction < ( inputPath : string ) => void > = vi . fn ( ( inputPath : string ) : void => { } ) ;
118+ export const addPath : MockedFunction < ( inputPath : string ) => void > = vi . fn ( ( _inputPath : string ) : void => { } ) ;
119119
120120/**
121121 * Sets env variable for this action and future actions in the job.
122122 * @param name - Name of the variable to set
123123 * @param val - Value of the variable
124124 */
125125export const exportVariable : MockedFunction < ( name : string , val : string ) => void > = vi . fn (
126- ( name : string , val : string ) : void => { } ,
126+ ( _name : string , _val : string ) : void => { } ,
127127) ;
128128
129129/**
130130 * Enables or disables the echoing of commands into stdout for the rest of the step.
131131 * @param enabled - True to enable echoing, false to disable
132132 */
133- export const setCommandEcho : MockedFunction < ( enabled : boolean ) => void > = vi . fn ( ( enabled : boolean ) : void => { } ) ;
133+ export const setCommandEcho : MockedFunction < ( enabled : boolean ) => void > = vi . fn ( ( _enabled : boolean ) : void => { } ) ;
134134
135135/**
136136 * Begin an output group.
137137 * @param name - Name of the output group
138138 * @param fn - Function to execute within the output group
139139 */
140140export const group : MockedFunction < ( name : string , fn : ( ) => Promise < void > ) => Promise < void > > = vi . fn (
141- async ( name : string , fn : ( ) => Promise < void > ) : Promise < void > => {
141+ async ( _name : string , fn : ( ) => Promise < void > ) : Promise < void > => {
142142 await fn ( ) ;
143143 } ,
144144) ;
@@ -150,15 +150,15 @@ export const group: MockedFunction<(name: string, fn: () => Promise<void>) => Pr
150150 * @param value - Value to store. Non-string values will be converted to a string via JSON.stringify
151151 */
152152export const saveState : MockedFunction < ( name : string , value : string ) => void > = vi . fn (
153- ( name : string , value : string ) : void => { } ,
153+ ( _name : string , _value : string ) : void => { } ,
154154) ;
155155
156156/**
157157 * Gets the value of an state set by this action's main execution.
158158 * @param name - Name of the state to get
159159 * @returns string
160160 */
161- export const getState : MockedFunction < ( name : string ) => string > = vi . fn ( ( name : string ) : string => '' ) ;
161+ export const getState : MockedFunction < ( name : string ) => string > = vi . fn ( ( _name : string ) : string => '' ) ;
162162
163163/**
164164 * Gets whether Actions Step Debug is on or not
@@ -172,7 +172,7 @@ export const isDebug: MockedFunction<() => boolean> = vi.fn((): boolean => false
172172 * @returns string
173173 */
174174export const getIDToken : MockedFunction < ( audience ?: string ) => Promise < string > > = vi . fn (
175- async ( audience ?: string ) : Promise < string > => '' ,
175+ async ( _audience ?: string ) : Promise < string > => '' ,
176176) ;
177177
178178/**
@@ -181,7 +181,7 @@ export const getIDToken: MockedFunction<(audience?: string) => Promise<string>>
181181 * @param value - Value to store. Non-string values will be converted to a string via JSON.stringify
182182 */
183183export const setOutput : MockedFunction < ( name : string , value : string ) => void > = vi . fn (
184- ( name : string , value : string ) : void => { } ,
184+ ( _name : string , _value : string ) : void => { } ,
185185) ;
186186
187187// Re-export types
0 commit comments