Skip to content

Commit

Permalink
Allow workflows to be manually triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed Feb 20, 2024
1 parent eaacf44 commit 6dd74bb
Showing 1 changed file with 45 additions and 16 deletions.
61 changes: 45 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,44 +583,73 @@ workflows:

release-create-branch:
when:
and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: ['release-create-branch', << pipeline.schedule.name >>]
condition:
or:
- and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: ['release-create-branch', << pipeline.schedule.name >>]
- equal: ['release-create-branch', << pipeline.parameters.workflow >>]
jobs:
- generate-release-branch

auto-approve-foundation-deploy:
when:
and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal:
['auto-approve-foundation-deploy', << pipeline.schedule.name >>]
condition:
or:
- and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal:
[
'auto-approve-foundation-deploy',
<< pipeline.schedule.name >>
]
- equal:
[
'auto-approve-foundation-deploy',
<< pipeline.parameters.workflow >>
]
jobs:
- approve-deployment-holds:
context: [slack-secrets, circle-daily-deploy-secrets]

notify-sp-release:
when:
and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: ['notify-sp-release', << pipeline.schedule.name >>]
condition:
or:
- and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: ['notify-sp-release', << pipeline.schedule.name >>]
- equal: ['notify-sp-release', << pipeline.parameters.workflow >>]
jobs:
- notify-sp-release-job:
context: [slack-secrets, circle-daily-deploy-secrets]

release-client-create-branch:
when:
and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: ['release-client-create-branch', << pipeline.schedule.name >>]
condition:
or:
- and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal:
['release-client-create-branch', << pipeline.schedule.name >>]
- equal:
[
'release-client-create-branch',
<< pipeline.parameters.workflow >>
]
jobs:
- generate-client-release

notify-stuck-stage-nodes:
when:
and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: ['notify-stuck-stage-nodes', << pipeline.schedule.name >>]
condition:
or:
- and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal:
['notify-stuck-stage-nodes', << pipeline.schedule.name >>]
- equal:
['notify-stuck-stage-nodes', << pipeline.parameters.workflow >>]
jobs:
- notify-stuck-stage-nodes-job:
context: [slack-secrets]

0 comments on commit 6dd74bb

Please sign in to comment.