Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: 2.1
setup: true
parameters:
scheduled-workflow:
type: boolean
default: false
orbs:
continuation: circleci/continuation@0.1.3
jobs:
schedule-job:
docker:
- image: cimg/base:stable
steps:
- run: echo "this should only run on a schedule"
workflows:
use-my-orb:
when:
equal: [false, << pipeline.parameters.scheduled-workflow >>]
jobs:
- continuation/continue:
configuration_path: ./config.yml
scheduled-workflow:
when: << pipeline.parameters.scheduled-workflow >>
jobs:
- schedule-job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment