Skip to content

Commit

Permalink
unique artifact names in case of matrix strategy (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
raianand authored May 2, 2024
1 parent ae32d24 commit 60b14d9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ async function generateSummary() {
const artifactClient = new DefaultArtifactClient()

const jobName = process.env.GITHUB_JOB // e.g. build
const runId = process.env.GITHUB_RUN_ID // e.g. 1658821493
const runAttempt = process.env.GITHUB_RUN_ATTEMPT // e.g. 1

if (isDebugMode === 'true') {
// Upload auditd log file to artifacts
const artifactName = `${jobName}-bolt-auditd-log`
const artifactName = `${jobName}-${runId}-${runAttempt}-bolt-auditd-log`
const files = ['/var/log/audit/audit.log']

const { id, size } = await artifactClient.uploadArtifact(
Expand All @@ -76,7 +78,7 @@ async function generateSummary() {
)

await artifactClient.uploadArtifact(
`${jobName}-bolt-audit-json`,
`${jobName}-${runId}-${runAttempt}-bolt-audit-json`,
['audit.json'],
process.cwd()
)
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const releaseVersion = 'v1.4.1'
const releaseVersion = 'v1.4.2'

module.exports = {
releaseVersion
Expand Down

0 comments on commit 60b14d9

Please sign in to comment.