Skip to content

Commit

Permalink
repackage
Browse files Browse the repository at this point in the history
  • Loading branch information
nonrational committed Feb 27, 2024
1 parent a728a10 commit e583bab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61983,14 +61983,14 @@ const RESULT_PATH = '/tmp/prev-result'
const run = async () => {
const sha = github.context.sha
core.info(`Running for current SHA ${sha}`)

try {
// inputResult will be 'unknown' if we're in "restore only" mode.
const inputResult = core.getInput('result')
const cacheGroup = core.getInput('cache-group')
const keyPrefix = `cache-result-action-${cacheGroup}-${sha}`
const key = keyPrefix + '-' + Math.floor(Date.now() / 1000)

await cache.restoreCache([RESULT_PATH], key, [keyPrefix])

let actualResult = inputResult
Expand All @@ -62014,10 +62014,10 @@ const run = async () => {
['cache_key', key],
['cache_outcome', cacheOutcome],
]

core.setOutput('result', actualResult)
await core.summary.addTable(resultSummary).write()

// https://github.com/actions/toolkit/issues/1578
core.info('All done. Forcing clean exit to avoid process hanging.')
process.exit(0)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit e583bab

Please sign in to comment.