Skip to content

Example GH Action that periodically triggers the CircleCI Pipeline that uses context variables

Notifications You must be signed in to change notification settings

bahmutov/gh-action-triggers-circleci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gh-action-triggers-circleci cron CircleCI

Example GH Action that periodically triggers the CircleCI Pipeline that uses context variables

By default the scheduled CircleCI workflows cannot use security contexts, bug. Which is very frustrating. As a workaround, this repo uses GH Actions to trigger the pipelines periodically.

The GH Action .github/workflows/cron.yml runs periodically and triggers the CircleCI pipeline in .circleci/config.yml using the trigger-circleci-pipeline utility. The trigger uses the CIRCLE_CI_API_TOKEN token to know which user is the "author" of the cron job, thus the CircleCI pipeline can use the security context variables.

About

Example GH Action that periodically triggers the CircleCI Pipeline that uses context variables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published