Skip to content

Instantly share code, notes, and snippets.

@nbialostosky
Created June 11, 2021 16:41
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/57373b3a548dd24701f315da8fa8c076 to your computer and use it in GitHub Desktop.
Save nbialostosky/57373b3a548dd24701f315da8fa8c076 to your computer and use it in GitHub Desktop.
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