Skip to content

Commit 9c2a71e

Browse files
committed
Cleaning log output
1 parent 7a26091 commit 9c2a71e

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function downloadQtC(urls: string[]): Promise<string[]> {
3838
try {
3939
for (const packageName of packages) {
4040
const fullUrl = `${url}/${packageName}`
41-
console.log(`Downloading ${fullUrl}`)
41+
core.info(`Downloading ${fullUrl}`)
4242
await downloadPackage(fullUrl, `${tmpDir}/${packageName}`)
4343
}
4444
return packages.map(packageName => `${tmpDir}/${packageName}`)
@@ -101,11 +101,11 @@ export async function run(): Promise<void> {
101101

102102
for (const packageFile of packages) {
103103
// Unzip the downloaded file
104-
console.log(`Unzipping package: ${packageFile}`)
104+
core.info(`Unzipping package: ${packageFile}`)
105105
await extract(packageFile, destination)
106106
}
107107

108-
console.log(`Qt Creator ${version} has been extracted to ${destination}`)
108+
core.info(`Qt Creator ${version} has been extracted to ${destination}`)
109109

110110
// Set outputs for other workflow steps to use
111111
core.setOutput('path', destination)
@@ -114,7 +114,6 @@ export async function run(): Promise<void> {
114114
path.resolve(destination).split(path.sep).join('/')
115115
)
116116
} catch (error) {
117-
console.log('Error:', error)
118117
// Fail the workflow run if an error occurs
119118
if (error instanceof Error) core.setFailed(error.message)
120119
}

0 commit comments

Comments
 (0)