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 4bb80b9 commit cc1d6a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
12 changes: 6 additions & 6 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.

13 changes: 6 additions & 7 deletions src/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {GitHub} from '@actions/github/lib/utils'
import {InputsArtifacts} from './inputs-helper'
import fs from 'fs'
import https from 'https'
import { dir } from 'console'

export async function workflowName(
workflow?: string | undefined
Expand Down Expand Up @@ -63,19 +62,19 @@ export async function setNotice(name: string, url: string, requests?: string[]):
// first we retrieve the directories
if (requests !== undefined) {

let directories: string[] = []
const directories: string[] = []

for (const file of requests) {
const dirname = path.basename(path.dirname(file))
if (directories.includes(dirname) === false) {
directories.push(`[dirname](${url}/builds/${name}/${dirname})`)
directories.push(dirname)
}
}
// then we add the list
await core.summary
.addHeading('Directories', 3)
.addList(directories)
.write()
await core.summary.addHeading('Directories', 3).write()
for (const directory of directories) {
await core.summary.addRaw(`- [${directory}](${url}/builds/${name}/${directory})\n`).write()
}
}
}

Expand Down

0 comments on commit cc1d6a6

Please sign in to comment.