Skip to content

Commit 8635f26

Browse files
committed
fix(deploy): do not bind or link static actions when dry running
1 parent 71b3c81 commit 8635f26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/deploy.cmd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Alternatively you can auto-add one using the {grey --add <name>} option.`);
406406

407407
let updatestatic;
408408
// bind helix-services
409-
if (this._bindStatic) {
409+
if (this._bindStatic && !this._dryRun) {
410410
updatestatic = openwhisk.packages.update({
411411
package: {
412412
binding: {
@@ -457,7 +457,7 @@ Alternatively you can auto-add one using the {grey --add <name>} option.`);
457457

458458
let numErrors = 0;
459459
let staticactionname = '/hlx--static';
460-
if (this._bindStatic) {
460+
if (this._bindStatic && !this._dryRun) {
461461
// probe Helix Static action for version number
462462
await request.get('https://adobeioruntime.net/api/v1/web/helix/helix-services/static@latest', {
463463
resolveWithFullResponse: true,
@@ -471,7 +471,7 @@ Alternatively you can auto-add one using the {grey --add <name>} option.`);
471471
});
472472
}
473473

474-
if (!numErrors) {
474+
if (!numErrors && !this._dryRun) {
475475
await openwhisk.actions.update({
476476
name: `${this._prefix}/hlx--static`,
477477
action: {

0 commit comments

Comments
 (0)