Skip to content

Commit

Permalink
fix: messages
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Dec 5, 2023
1 parent 95cbdc4 commit 2e8200b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 26 deletions.
62 changes: 40 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@actions/exec": "^1.1.1",
"@actions/github": "^5.1.1",
"@actions/io": "^1.1.2",
"ts-dedent": "^2.2.0"
"dedent": "^1.5.1"
},
"devDependencies": {
"@types/jest": "^27.5.2",
Expand Down
2 changes: 1 addition & 1 deletion src/restoreImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function restoreWithKey(key: string, paths: string[]) {
utils.info(`Restoring a cache with the key "${key}".`);

utils.info(
`::group::Logs while restoring. Errors are due to attempts to overwrite read-only paths.`
`::group::Logs are hidden. Errors are due to attempts to overwrite read-only paths.`
);

await utils.getCacheKey({
Expand Down
4 changes: 2 additions & 2 deletions src/utils/actionUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as cache from "@actions/cache";
import * as core from "@actions/core";
import * as github from "@actions/github";
import { dedent } from "ts-dedent";
import dedent from "dedent";

import { Inputs, RefKey } from "../constants";

Expand Down Expand Up @@ -195,5 +195,5 @@ export function getMaxDate({
export const stringify = (value: any) => JSON.stringify(value, null, 2);

export const info = (message: string) => {
core.info(dedent(message));
core.info(dedent.withOptions({})(message));
};

0 comments on commit 2e8200b

Please sign in to comment.