Skip to content

improve logs #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/chunk1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19921,7 +19921,7 @@ function getUserAgent() {
function runAction(fn) {
fn().catch((error) => {
const errorMessage = error instanceof Error ? error.message : String(error);
core.setFailed(`Error: ${errorMessage}`);
core.setFailed(errorMessage);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error is already present in the output. See

Image

});
}

Expand Down
3 changes: 1 addition & 2 deletions dist/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ async function cleanup() {
await revokeToken(registryUrl, token);
}
async function revokeToken(registryUrl, token) {
core.info("Revoking trusted publishing token");
const tokensEndpoint = _chunk1js.getTokensEndpoint.call(void 0, registryUrl);
core.info(`Revoking token at: ${tokensEndpoint}`);
core.info(`Revoking trusted publishing token at ${tokensEndpoint}`);
const response = await fetch(tokensEndpoint, {
method: "DELETE",
headers: {
Expand Down
5 changes: 1 addition & 4 deletions src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ export async function cleanup(): Promise<void> {
}

async function revokeToken(registryUrl: string, token: string): Promise<void> {
core.info("Revoking trusted publishing token");

const tokensEndpoint = getTokensEndpoint(registryUrl);

core.info(`Revoking token at: ${tokensEndpoint}`);
core.info(`Revoking trusted publishing token at ${tokensEndpoint}`);

const response = await fetch(tokensEndpoint, {
method: "DELETE",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ export function runAction(fn: () => Promise<void>): void {
fn().catch((error: unknown) => {
const errorMessage =
error instanceof Error ? error.message : String(error);
core.setFailed(`Error: ${errorMessage}`);
core.setFailed(errorMessage);
});
}