Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/ts-pattern-5.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma authored Nov 4, 2024
2 parents 8d2631f + 7aeabbe commit f050a2a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@ava/typescript": "^5.0.0",
"@tsconfig/node20": "^20.1.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.7.4",
"@types/node": "^22.8.6",
"@vercel/ncc": "^0.38.2",
"all-contributors-cli": "^6.26.1",
"ava": "^6.2.0",
Expand Down
16 changes: 8 additions & 8 deletions src/action/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ async function run(): Promise<void> {
'--disable-sandbox',
inputs.steward.extraArgs?.value.split(' ') ?? [],
], inputs.steward.extraJars)
} finally {
await workspace.saveWorkspaceCache()
await workspace.cancelTokenRefresh()
}

if (files.existsSync(workspace.runSummary_md)) {
logger.info(`✓ Run Summary file: ${workspace.runSummary_md}`)
if (files.existsSync(workspace.runSummary_md)) {
logger.info(`✓ Run Summary file: ${workspace.runSummary_md}`)

const summaryMarkdown = files.readFileSync(workspace.runSummary_md, 'utf8')
await core.summary.addRaw(summaryMarkdown).write()
const summaryMarkdown = files.readFileSync(workspace.runSummary_md, 'utf8')
await core.summary.addRaw(summaryMarkdown).write()
}
} finally {
await workspace.purgeTempFilesAndSaveCache()
await workspace.cancelTokenRefresh()
}
} catch (error: unknown) {
core.setFailed(` ✕ ${(error as Error).message}`)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/workspace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ test('`Workspace.restoreWorkspaceCache()` → generates different hash for diffe
test('`Workspace.saveWorkspaceCache()` → saves cache', async t => {
const {workspace, calls} = fixture('- owner/repo')

await workspace.saveWorkspaceCache()
await workspace.purgeTempFilesAndSaveCache()

const now = Date.now()

Expand Down
2 changes: 1 addition & 1 deletion src/modules/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Workspace {
*
* @param {string} workspace - the Scala Steward workspace directory
*/
async saveWorkspaceCache(): Promise<void> {
async purgeTempFilesAndSaveCache(): Promise<void> {
try {
this.logger.startGroup('Saving workspace to cache...')

Expand Down

0 comments on commit f050a2a

Please sign in to comment.