Skip to content

Commit

Permalink
fixup! feat: allow to skip upload with SKIP_UPLOAD env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia committed Jun 27, 2023
1 parent 445a6c7 commit a059d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import run from "./run";
import upload from "./upload";

const VERSION = process.env.VERSION;
const SKIP_UPLOAD = process.env.SKIP_UPLOAD;
const CODSPEED_SKIP_UPLOAD = process.env.CODSPEED_SKIP_UPLOAD === "true";

const banner = String.raw`
______ __ _____ __
Expand All @@ -23,7 +23,7 @@ async function main(): Promise<void> {
const inputs = getActionInputs();
await prepare();
const {profileFolder} = await run(inputs);
if (SKIP_UPLOAD !== "true") {
if (!CODSPEED_SKIP_UPLOAD) {
await upload(inputs, profileFolder);
}
} catch (error) {
Expand Down

0 comments on commit a059d30

Please sign in to comment.