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() {
1992119921function runAction(fn) {
1992219922 fn().catch((error) => {
1992319923 const errorMessage = error instanceof Error ? error.message : String(error);
19924- core.setFailed(`Error: ${ errorMessage}` );
19924+ core.setFailed(errorMessage);
1992519925 });
1992619926}
1992719927
Original file line number Diff line number Diff line change @@ -22,9 +22,8 @@ async function cleanup() {
2222 await revokeToken ( registryUrl , token ) ;
2323}
2424async function revokeToken ( registryUrl , token ) {
25- core . info ( "Revoking trusted publishing token" ) ;
2625 const tokensEndpoint = _chunk1js . getTokensEndpoint . call ( void 0 , registryUrl ) ;
27- core . info ( `Revoking token at: ${ tokensEndpoint } ` ) ;
26+ core . info ( `Revoking trusted publishing token at ${ tokensEndpoint } ` ) ;
2827 const response = await fetch ( tokensEndpoint , {
2928 method : "DELETE" ,
3029 headers : {
Original file line number Diff line number Diff line change @@ -27,11 +27,8 @@ export async function cleanup(): Promise<void> {
2727}
2828
2929async function revokeToken ( registryUrl : string , token : string ) : Promise < void > {
30- core . info ( "Revoking trusted publishing token" ) ;
31-
3230 const tokensEndpoint = getTokensEndpoint ( registryUrl ) ;
33-
34- core . info ( `Revoking token at: ${ tokensEndpoint } ` ) ;
31+ core . info ( `Revoking trusted publishing token at ${ tokensEndpoint } ` ) ;
3532
3633 const response = await fetch ( tokensEndpoint , {
3734 method : "DELETE" ,
Original file line number Diff line number Diff line change @@ -95,6 +95,6 @@ export function runAction(fn: () => Promise<void>): void {
9595 fn ( ) . catch ( ( error : unknown ) => {
9696 const errorMessage =
9797 error instanceof Error ? error . message : String ( error ) ;
98- core . setFailed ( `Error: ${ errorMessage } ` ) ;
98+ core . setFailed ( errorMessage ) ;
9999 } ) ;
100100}
You can’t perform that action at this time.
0 commit comments