From 8d4839c0405fc0e9f85800e2da1b93abb9fd548d Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 18 Dec 2023 19:24:43 +0000 Subject: [PATCH] feat(scripts): add skip refresh flag to deployment set --- packages/workflows/src/deployment.workflows.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/workflows/src/deployment.workflows.ts b/packages/workflows/src/deployment.workflows.ts index 3575512a3c..b301ec66ae 100644 --- a/packages/workflows/src/deployment.workflows.ts +++ b/packages/workflows/src/deployment.workflows.ts @@ -77,6 +77,12 @@ const workflows: IDeploymentWorkflows = { ], }, set: { + options: [ + { + flags: "--skip-refresh", + description: "Skip remote content refresh", + }, + ], label: "Set active deployment", steps: [ { @@ -94,6 +100,7 @@ const workflows: IDeploymentWorkflows = { }, { name: "refresh_remote_content", + condition: async ({ options }) => !options.skipRefresh, function: async ({ tasks, config }) => { if (config.git?.content_repo) { await tasks.git().refreshRemoteRepo();