Skip to content

Commit

Permalink
Merge pull request #15 from Mermaid-Chart/ci/disable-argos-in-ci
Browse files Browse the repository at this point in the history
ci: disable Argos in CI
  • Loading branch information
ashishjain0512 authored Nov 7, 2024
2 parents 191cd27 + f550f17 commit 13d4a23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export default eyesPlugin(
});
// copy any needed variables from process.env to config.env
config.env.useAppli = process.env.USE_APPLI ? true : false;
config.env.useArgos = !!process.env.CI;
// only use Argos on CI in the mermaid-js/mermaid repository
config.env.useArgos =
!!process.env.CI && process.env.GITHUB_REPOSITORY === 'mermaid-js/mermaid';

if (config.env.useArgos) {
registerArgosTask(on, config, {
Expand Down

0 comments on commit 13d4a23

Please sign in to comment.