Skip to content

Commit

Permalink
🐛 Update artifact upload pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Apr 25, 2024
1 parent 528bfd7 commit e185f83
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/code-quality.yml
Expand Up @@ -30,5 +30,6 @@ jobs:
args: --print-problems,--log-level,debug,--config,.github/qodana.yaml
pr-mode: true
use-nightly: true
upload-result: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
8 changes: 7 additions & 1 deletion scan/dist/index.js
Expand Up @@ -126504,7 +126504,13 @@ var require_utils9 = __commonJS({
}
try {
core2.info("Uploading artifacts...");
const globber = yield glob.create(`${resultsDir}/*`);
const locations = [
`${resultsDir}/*`,
`${resultsDir}/log/*`,
`${resultsDir}/report/*`,
`${resultsDir}/projectStructure/*`
];
const globber = yield glob.create(locations.join("\n"));
const files = yield globber.glob();
yield artifact_1.default.uploadArtifact(artifactName, files, path_1.default.dirname(resultsDir));
} catch (error) {
Expand Down
8 changes: 7 additions & 1 deletion scan/src/utils.ts
Expand Up @@ -196,7 +196,13 @@ export async function uploadArtifacts(
}
try {
core.info('Uploading artifacts...')
const globber = await glob.create(`${resultsDir}/*`)
const locations = [
`${resultsDir}/*`,
`${resultsDir}/log/*`,
`${resultsDir}/report/*`,
`${resultsDir}/projectStructure/*`
]
const globber = await glob.create(locations.join('\n'))
const files = await globber.glob()
await artifact.uploadArtifact(artifactName, files, path.dirname(resultsDir))
} catch (error) {
Expand Down

0 comments on commit e185f83

Please sign in to comment.