Skip to content

Commit d498d22

Browse files
committed
ci(local-action): set verbose only if debug flag set in github actions
1 parent 6c3a84c commit d498d22

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/actions/code-pushup/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ runs:
1616
env:
1717
TSX_TSCONFIG_PATH: .github/actions/code-pushup/tsconfig.json
1818
GH_TOKEN: ${{ inputs.token }}
19-
CP_VERBOSE: true

.github/actions/code-pushup/src/runner.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import {
1010
type SourceFileIssue,
1111
runInCI,
1212
} from '@code-pushup/ci';
13-
import { CODE_PUSHUP_UNICODE_LOGO, stringifyError } from '@code-pushup/utils';
13+
import {
14+
CODE_PUSHUP_UNICODE_LOGO,
15+
logger,
16+
stringifyError,
17+
} from '@code-pushup/utils';
1418

1519
type GitHubRefs = {
1620
head: GitBranch;
@@ -126,6 +130,10 @@ function createGitHubApiClient(): ProviderAPIClient {
126130

127131
async function run(): Promise<void> {
128132
try {
133+
if (core.isDebug()) {
134+
logger.setVerbose(true);
135+
}
136+
129137
const options: Options = {
130138
bin: 'npx nx code-pushup --nx-bail --',
131139
};

0 commit comments

Comments
 (0)