We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf41b66 commit d9b8a1dCopy full SHA for d9b8a1d
.circleci/dynamic_config.yml
@@ -382,12 +382,15 @@ workflows:
382
nodeversion: '16.10'
383
snapshots: true
384
pre-steps:
385
- - run:
386
- name: Check if e2e snapshots should be executed.
387
- command: >
388
- if [[ "<<pipeline.parameters.snapshot_changed>>" != "true" ]] && [[ -n "{$CIRCLE_PULL_REQUEST}" ]]; then
389
- circleci-agent step halt
390
- fi
+ - when:
+ condition:
+ and:
+ - not:
+ equal: [main, << pipeline.git.branch >>]
+ - not: << pipeline.parameters.snapshot_changed >>
391
+ steps:
392
+ # Don't run snapshot E2E's unless it's on the main branch or the snapshots file has been updated.
393
+ - run: circleci-agent step halt
394
requires:
395
- build
396
filters:
0 commit comments