Skip to content

Commit

Permalink
Publish render summary even if cache is false
Browse files Browse the repository at this point in the history
  • Loading branch information
dinisnunes1 committed Mar 7, 2023
1 parent 40baded commit a7211ff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions dist/cleanup/index.js

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

18 changes: 10 additions & 8 deletions src/cleanup-android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@ async function run(): Promise<void> {
const cmakeVersion = core.getInput(constants.INPUT_CMAKE_VERSION)
const cacheDisabled = core.getInput(constants.INPUT_CACHE_DISABLED)

let savedCacheEntry
if (!cacheDisabled) {
const savedCacheEntry = await saveCache(
savedCacheEntry = await saveCache(
sdkVersion,
buildToolsVersion,
ndkVersion,
cmakeVersion
)
await renderSummary(
sdkVersion,
buildToolsVersion,
ndkVersion,
cmakeVersion,
savedCacheEntry
)
}

await renderSummary(
sdkVersion,
buildToolsVersion,
ndkVersion,
cmakeVersion,
savedCacheEntry
)
} catch (error) {
if (error instanceof Error) core.setFailed(error.message)
}
Expand Down

0 comments on commit a7211ff

Please sign in to comment.