Skip to content

Commit

Permalink
Merge pull request #2174 from IDEMSInternational/feat/deployment-set-…
Browse files Browse the repository at this point in the history
…flags

feat(scripts): add skip refresh flag to deployment set
  • Loading branch information
chrismclarke authored Jan 30, 2024
2 parents 5e37117 + db34f27 commit d3b260d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/workflows/src/deployment.workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ const workflows: IDeploymentWorkflows = {
],
},
set: {
options: [
{
flags: "--skip-refresh",
description: "Skip remote content refresh",
},
],
label: "Set active deployment",
steps: [
{
Expand All @@ -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();
Expand Down

0 comments on commit d3b260d

Please sign in to comment.