Skip to content

Commit

Permalink
chore: bump dist
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed Oct 13, 2024
1 parent 5bf317c commit 322d801
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144179,12 +144179,14 @@ function replaceCodeHealth(message, health, template) {
return replacePlaceholders(message, health);
}
function replaceRepoData(message, artifactId) {
const context = lib_github.context;
return message
.replace(/{{serverUrl}}/g, context.serverUrl)
.replace(/{{runId}}/g, context.runId.toString())
.replace(/{{repositoryName}}/g, context.repo.repo)
.replace(/{{repositoryOwner}}/g, context.repo.owner)
.replace(/{{artifactText}}/g, artifactId ? artifactText : "")
.replace(/{{artifactId}}/g, String(artifactId ?? 0))
.replace(/{{runId}}/g, lib_github.context.runId.toString())
.replace(/{{repositoryName}}/g, lib_github.context.repo.repo)
.replace(/{{repositoryOwner}}/g, lib_github.context.repo.owner);
.replace(/{{artifactId}}/g, String(artifactId ?? 0));
}
function replaceBadges(message, badges) {
return message.replace(/{{coverageBadge}}/g, badges.join(" "));
Expand Down Expand Up @@ -144332,7 +144334,7 @@ const newCoverageInfo = `
📁 Total Files: {{filesCount}}
`;
const artifactText = `
🔍 [Download Full Analysis Details](https://github.com/{{repositoryOwner}}/{{repositoryName}}/actions/runs/{{runId}}/artifacts/{{artifactId}})
🔍 [Download Full Analysis Details]({{serverUrl}}/{{repositoryOwner}}/{{repositoryName}}/actions/runs/{{runId}}/artifacts/{{artifactId}})
`;
function getCommentTemplate(result, artifactId) {
const coverageTemplate = result.relativeAnalysis
Expand Down Expand Up @@ -144567,8 +144569,10 @@ var cache = __nccwpck_require__(10184);




const workflow = lib_github.context.workflow;
async function saveCache(filePath, branch) {
const cacheId = `vmd-analysis-${branch}`;
const cacheId = `vmd-analysis-${branch}-${workflow}`;
const cachePaths = [filePath];
try {
await cache.saveCache(cachePaths, cacheId);
Expand All @@ -144578,7 +144582,7 @@ async function saveCache(filePath, branch) {
}
}
async function restoreCache(branch, cachePath) {
const cacheId = `vmd-analysis-${branch}`;
const cacheId = `vmd-analysis-${branch}-${workflow}`;
try {
const cacheKey = await cache.restoreCache([cachePath], cacheId);
if (cacheKey) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 322d801

Please sign in to comment.