Skip to content

Commit

Permalink
Merge pull request #64 from tj-actions/chore/removed-unused-code
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Mar 16, 2022
2 parents 3ce2e5d + f59b079 commit 680e368
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
9 changes: 2 additions & 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.

9 changes: 2 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,10 @@ export async function run(): Promise<void> {
if (pathsOutput) {
const pathsOutputFile = tempfile('.txt')

try {
await fs.writeFile(pathsOutputFile, pathsOutput)
core.info(`created paths-output-file: ${pathsOutputFile}`)
} catch (err) {
core.setFailed(err as Error)
}

await fs.writeFile(pathsOutputFile, pathsOutput)
core.setOutput('paths-output-file', pathsOutputFile)
core.saveState('paths-output-file', pathsOutputFile)
core.info(`Successfully created paths-output-file: ${pathsOutputFile}`)
} else if (
!pathsOutput &&
filePatterns.split('\n').filter(p => !DEFAULT_EXCLUDED_FILES.includes(p))
Expand Down

0 comments on commit 680e368

Please sign in to comment.