Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: 2.1
jobs:
run-scheduled-workflow:
docker:
- image: cimg/base:stable
steps:
- run:
name: Run scheduled workflow
command: |
curl --location --request POST 'https://circleci.com/api/v2/project/github/org/dynamic-config-example/pipeline' \
--header 'Content-Type: application/json' \
-u "${CIRCLE_TOKEN}:" \
--data-raw '{
"branch": "circleci-project-setup",
"parameters": {
"scheduled-workflow": true
}
}'
workflows:
scheduled-workflow:
triggers:
- schedule:
cron: "40 * * * *"
filters:
branches:
only:
- main
jobs:
- run-scheduled-workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment