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 167b3ea commit a4559a7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
35 changes: 21 additions & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144121,14 +144121,31 @@ const readActionInputs = () => ({

// EXTERNAL MODULE: ./node_modules/.pnpm/@[email protected]/node_modules/@actions/artifact/lib/internal/client.js
var client = __nccwpck_require__(47044);
;// CONCATENATED MODULE: external "node:crypto"
const external_node_crypto_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto");
var external_node_crypto_default = /*#__PURE__*/__nccwpck_require__.n(external_node_crypto_namespaceObject);
;// CONCATENATED MODULE: ./src/helpers/constants.ts


const ERROR_WEIGHT = 1.5;
const LOW_HEALTH_THRESHOLD = 75;
const MEDIUM_HEALTH_THRESHOLD = 85;
const OK_HEALTH_THRESHOLD = 95;
const ASSETS_URL = "https://raw.githubusercontent.com/brenoepics/vmd-action/main/src/templates/";
const ISSUES_URL = "https://github.com/brenoepics/vmd-action/issues/";
const REPORT_PATH = "vmd-analysis.json";
const WORKFLOW_HASH = external_node_crypto_default().createHash("sha256")
.update(lib_github.context.workflow)
.digest("hex");

;// CONCATENATED MODULE: ./src/github/artifact.ts



function generateArtifactName() {
const prefix = "vmd-report";
const randomHash = Math.floor(Math.random() * 1e8).toString();
const timestamp = Date.now().toString();
return `${prefix}-${randomHash}-${timestamp}`;
return `${prefix}-${WORKFLOW_HASH}-${randomHash}`;
}
async function uploadOutputArtifact(coverageFilePath) {
let artifactId;
Expand Down Expand Up @@ -144239,15 +144256,6 @@ const singleReport = (report) => {
return `\n ${report.id}: ${report.message}`;
};

;// CONCATENATED MODULE: ./src/helpers/constants.ts
const ERROR_WEIGHT = 1.5;
const LOW_HEALTH_THRESHOLD = 75;
const MEDIUM_HEALTH_THRESHOLD = 85;
const OK_HEALTH_THRESHOLD = 95;
const ASSETS_URL = "https://raw.githubusercontent.com/brenoepics/vmd-action/main/src/templates/";
const ISSUES_URL = "https://github.com/brenoepics/vmd-action/issues/";
const REPORT_PATH = "vmd-analysis.json";

;// CONCATENATED MODULE: ./src/templates/badgeTemplate.ts


Expand Down Expand Up @@ -144570,9 +144578,8 @@ var cache = __nccwpck_require__(10184);



const workflow = lib_github.context.workflow;
async function saveCache(filePath, branch) {
const cacheId = `vmd-analysis-${branch}-${workflow}`;
const cacheId = `vmd-analysis-${branch}-${WORKFLOW_HASH}`;
const cachePaths = [filePath];
try {
await cache.saveCache(cachePaths, cacheId);
Expand All @@ -144582,7 +144589,7 @@ async function saveCache(filePath, branch) {
}
}
async function restoreCache(branch, cachePath) {
const cacheId = `vmd-analysis-${branch}-${workflow}`;
const cacheId = `vmd-analysis-${branch}-${WORKFLOW_HASH}`;
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 a4559a7

Please sign in to comment.