Skip to content

Commit

Permalink
Fix linting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma committed Jun 15, 2023
1 parent e39113d commit 8c4b1a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/action/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ async function run(): Promise<void> {
inputs.steward.extraArgs?.value.split(' ') ?? [],
])

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

const summaryMarkdown = this.files.readFileSync(workspace.runSummary_md, 'utf8')
const summaryMarkdown = files.readFileSync(workspace.runSummary_md, 'utf8')
await core.summary.addRaw(summaryMarkdown).write()
}

await workspace.saveWorkspaceCache()
} catch (error: unknown) {
core.setFailed(` ✕ ${(error as Error).message}`)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Workspace {
readonly repos_md = mandatory(path.join(this.directory, 'repos.md'))
readonly app_pem = mandatory(path.join(this.directory, 'app.pem'))
readonly askpass_sh = mandatory(path.join(this.directory, 'askpass.sh'))
readonly runSummary_md = path.join(this.workspace.value, 'run-summary.md')
readonly runSummary_md: string = path.join(this.workspace.value, 'run-summary.md')

constructor(
private readonly logger: Logger,
Expand Down

0 comments on commit 8c4b1a0

Please sign in to comment.