Skip to content

Instantly share code, notes, and snippets.

@nbialostosky
Created June 11, 2021 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbialostosky/9c80a7cb0bac7b77a0a3d90fd87a8e9d to your computer and use it in GitHub Desktop.
Save nbialostosky/9c80a7cb0bac7b77a0a3d90fd87a8e9d to your computer and use it in GitHub Desktop.
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