Skip to content

Commit

Permalink
Apply workflows filtering for scheduled nightly pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
serena97 committed Jun 13, 2022
1 parent 39b468c commit 31f334c
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ workflows:
version: 2

build-test:
when:
not:
equal:
- scheduled_pipeline
- << pipeline.trigger_source >>
jobs:
- build:
filters:
Expand All @@ -148,6 +153,11 @@ workflows:
node-version: [ "16.14", "14.19" ]

build-test-publish:
when:
not:
equal:
- scheduled_pipeline
- << pipeline.trigger_source >>
jobs:
- build:
filters:
Expand All @@ -173,11 +183,14 @@ workflows:
- test-v16.14

nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
<<: *filters_only_main
when:
and:
- equal:
- scheduled_pipeline
- << pipeline.trigger_source >>
- equal:
- nightly
- << pipeline.schedule.name >>
jobs:
- build:
context: next-nightly-build
Expand Down

0 comments on commit 31f334c

Please sign in to comment.