Skip to content

Commit

Permalink
fix(deploy): ensure that static action version is valid (#1051)
Browse files Browse the repository at this point in the history
fixes #1050
  • Loading branch information
tripodsan authored Jul 2, 2019
1 parent 40478b5 commit 7d55da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deploy.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ Alternatively you can auto-add one using the {grey --add <name>} option.`);
await request.get('https://adobeioruntime.net/api/v1/web/helix/helix-services/static@latest', {
resolveWithFullResponse: true,
}).then((res) => {
const version = res.headers['x-version'];
tick(` verified static action version ${version}`);
const version = res.headers['x-version'] || 'latest';
tick(` verified static action version: ${version}`);
staticactionname = `/helix-services/static@${version}`;
}).catch((e) => {
this.log.error(`❌ Unable to verify the static action: ${e.message}`);
Expand Down

0 comments on commit 7d55da6

Please sign in to comment.