File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
ansible/www-standalone/tools/promote Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ async function execute () {
188188 caution = true
189189 console . log ( ` \u001b[33m\u001b[1m⚠\u001b[22m\u001b[39m The following assets are expected for ${ line } but are currently missing from staging:` )
190190 notInActual . forEach ( ( a ) => console . log ( ` • ${ a } ` ) )
191+ console . log ( 'Canceling the promotion' )
192+ process . exit ( 1 )
191193 }
192194
193195 // bogus unexpected files found in staging, not good
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ srcdir=$release_srcdir
2222dstdir=$release_dstdir
2323dirmatch=$release_dirmatch
2424
25- node --no-warnings /home/staging/tools/promote/check_assets.js $srcdir /$2 $dstdir /$2
25+ node --no-warnings /home/staging/tools/promote/check_assets.js $srcdir /$2 $dstdir /$2 || exit 1
2626
2727relative_srcdir=${srcdir/ $staging_rootdir / " $site /" }
2828relative_dstdir=${dstdir/ $dist_rootdir / " $site /" }
You can’t perform that action at this time.
0 commit comments