Skip to content

Commit

Permalink
fix: line grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
NoCrypt committed Jul 30, 2024
1 parent 304348d commit ebc4a15
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
8 changes: 1 addition & 7 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async function signReleaseFiles(
const releaseFilePath = path.join(releaseDir, releaseFile.name)
let signedReleaseFile = ''

console.log('::group::Working on', releaseFile.name, '...')
console.log('Working on', releaseFile.name, '...')

try {
if (releaseFile.name.endsWith('.apk')) {
Expand All @@ -184,8 +184,6 @@ async function signReleaseFiles(
throw new Error(
`Failed to sign file ${releaseFile.name}: ${error.message}`
)
} finally {
console.log('::endgroup::')
}

core.exportVariable(`ANDROID_SIGNED_FILE_${index}`, signedReleaseFile)
Expand Down
3 changes: 0 additions & 3 deletions src/signing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,11 @@ async function getBuildToolsPath(): Promise<string> {
}
}
}
console.log('::group::Detecting Android build tools version...')
await exec.exec('ls', [buildToolsDir], options)
const versions = buildToolsVersion.trim().split('\n')
buildToolsVersion = versions[versions.length - 1]
console.log('Found! Build tools version', buildToolsVersion)
console.log('::endgroup::')
} catch (error) {
console.log('::endgroup::')
throw new Error('Failed to detect Android build tools version.')
}
}
Expand Down

0 comments on commit ebc4a15

Please sign in to comment.