File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -19921,7 +19921,7 @@ function getUserAgent() {
19921
19921
function runAction(fn) {
19922
19922
fn().catch((error) => {
19923
19923
const errorMessage = error instanceof Error ? error.message : String(error);
19924
- core.setFailed(`Error: ${ errorMessage}` );
19924
+ core.setFailed(errorMessage);
19925
19925
});
19926
19926
}
19927
19927
Original file line number Diff line number Diff line change @@ -22,9 +22,8 @@ async function cleanup() {
22
22
await revokeToken ( registryUrl , token ) ;
23
23
}
24
24
async function revokeToken ( registryUrl , token ) {
25
- core . info ( "Revoking trusted publishing token" ) ;
26
25
const tokensEndpoint = _chunk1js . getTokensEndpoint . call ( void 0 , registryUrl ) ;
27
- core . info ( `Revoking token at: ${ tokensEndpoint } ` ) ;
26
+ core . info ( `Revoking trusted publishing token at ${ tokensEndpoint } ` ) ;
28
27
const response = await fetch ( tokensEndpoint , {
29
28
method : "DELETE" ,
30
29
headers : {
Original file line number Diff line number Diff line change @@ -27,11 +27,8 @@ export async function cleanup(): Promise<void> {
27
27
}
28
28
29
29
async function revokeToken ( registryUrl : string , token : string ) : Promise < void > {
30
- core . info ( "Revoking trusted publishing token" ) ;
31
-
32
30
const tokensEndpoint = getTokensEndpoint ( registryUrl ) ;
33
-
34
- core . info ( `Revoking token at: ${ tokensEndpoint } ` ) ;
31
+ core . info ( `Revoking trusted publishing token at ${ tokensEndpoint } ` ) ;
35
32
36
33
const response = await fetch ( tokensEndpoint , {
37
34
method : "DELETE" ,
Original file line number Diff line number Diff line change @@ -95,6 +95,6 @@ export function runAction(fn: () => Promise<void>): void {
95
95
fn ( ) . catch ( ( error : unknown ) => {
96
96
const errorMessage =
97
97
error instanceof Error ? error . message : String ( error ) ;
98
- core . setFailed ( `Error: ${ errorMessage } ` ) ;
98
+ core . setFailed ( errorMessage ) ;
99
99
} ) ;
100
100
}
You can’t perform that action at this time.
0 commit comments