From 6dd74bb51c2e5dd2c25d415e5b8a0db6bc109c9f Mon Sep 17 00:00:00 2001 From: Raymond Jacobson Date: Tue, 20 Feb 2024 15:56:46 -0800 Subject: [PATCH] Allow workflows to be manually triggered --- .circleci/config.yml | 61 ++++++++++++++++++++++++++++++++------------ 1 file changed, 45 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 27b5b613f6c..653a24871ff 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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]