Skip to content

Commit 11e71cf

Browse files
Report trigger deployment success/failure + use updated API to the backend (#248)
* Report triggers deployment separately from actions Will require a new release of the deployer to activate * Declare version 4.2.5 with deployer 4.3.7 Contains support for the emerging "official" API (perhaps not quite in final form).
1 parent 4dc7d93 commit 11e71cf

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
lines changed

package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nimbella/nimbella-cli",
3-
"version": "4.2.4",
3+
"version": "4.2.5",
44
"description": "A comprehensive CLI for the Nimbella stack",
55
"main": "lib/index.js",
66
"repository": {
@@ -17,7 +17,7 @@
1717
"@adobe/aio-cli-plugin-runtime": "github:nimbella/aio-cli-plugin-runtime#v2021-11-19-1",
1818
"@adobe/aio-lib-core-config": "^2.0.0",
1919
"@adobe/aio-lib-runtime": "^3.3.0",
20-
"@nimbella/nimbella-deployer": "4.3.6",
20+
"@nimbella/nimbella-deployer": "4.3.7",
2121
"@nimbella/storage": "^0.0.7",
2222
"@oclif/command": "^1",
2323
"@oclif/config": "^1",

src/commands/project/deploy.ts

+17
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,11 @@ function displayResult(result: DeployResponse, watching: boolean, webLocal: stri
212212
} else {
213213
logger.log('')
214214
const actions: string[] = []
215+
const triggers: string[] = []
215216
let deployedWeb = 0
216217
let skippedActions = 0
217218
let skippedWeb = 0
219+
let skippedTriggers = 0
218220
for (const success of result.successes) {
219221
if (success.kind === 'web') {
220222
if (success.skipped) {
@@ -232,6 +234,12 @@ function displayResult(result: DeployResponse, watching: boolean, webLocal: stri
232234
}
233235
actions.push(name)
234236
}
237+
} else if (success.kind === 'trigger') {
238+
if (success.skipped) {
239+
skippedTriggers++
240+
} else {
241+
triggers.push(success.name)
242+
}
235243
}
236244
}
237245
if (deployedWeb > 0) {
@@ -263,6 +271,15 @@ function displayResult(result: DeployResponse, watching: boolean, webLocal: stri
263271
if (skippedActions > 0) {
264272
logger.log(`Skipped ${skippedActions} unchanged actions`)
265273
}
274+
if (triggers.length > 0) {
275+
logger.log('Deployed triggers:')
276+
for (const trigger of triggers) {
277+
logger.log(` - ${trigger}`)
278+
}
279+
}
280+
if (skippedTriggers > 0) {
281+
logger.log(`Skipped ${skippedTriggers} triggers`)
282+
}
266283
if (result.failures.length > 0) {
267284
success = false
268285
logger.log('Failures:')

0 commit comments

Comments
 (0)