Skip to content

Commit

Permalink
add version to output filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmelt committed Aug 17, 2023
1 parent 0d329fb commit 365831d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/post_release_clamav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.data.id,
name: "${{ steps.date.outputs.date }}_clamav_results.txt",
name: "${{ steps.date.outputs.date }}_clamav_results_v${{ github.event.inputs.version }}.txt",
data: await fs.readFileSync("scripts/release/clamav_results.txt")
});
4 changes: 2 additions & 2 deletions .github/workflows/post_release_trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.data.id,
name: "${{ steps.date.outputs.date }}_trivy_results.zip",
name: "${{ steps.date.outputs.date }}_trivy_results_v${{ github.event.inputs.version }}.zip",
data: await fs.readFileSync("trivy_results.zip")
});
// Upload the release asset
await github.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.data.id,
name: "${{ steps.date.outputs.date }}_sbom.zip",
name: "${{ steps.date.outputs.date }}_sbom_v${{ github.event.inputs.version }}.zip",
data: await fs.readFileSync("sbom.zip")
});

0 comments on commit 365831d

Please sign in to comment.