Skip to content

Commit

Permalink
Base name
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Dec 21, 2023
1 parent 7fefaca commit 20ca6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export async function setNotice(name: string, url: string, requests?: string[]):
let directories: string[] = []

for (const file of requests) {
const dirname = path.dirname(file)
const dirname = path.basename(path.dirname(file))

Check failure on line 69 in src/artifacts.ts

View workflow job for this annotation

GitHub Actions / build

'directories' is never reassigned. Use 'const' instead
if (directories.includes(dirname) === false) {
directories.push(`[dirname](${url}/builds/${name}/${dirname})})`)
directories.push(`[dirname](${url}/builds/${name}/${dirname})`)
}
}
// then we add the list
Expand Down

0 comments on commit 20ca6ff

Please sign in to comment.