mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 02:13:47 +01:00
Exit the release job if creating binary package failed (#11145)
Try to exit the job if creating binary package failed, related issue: https://github.com/nushell/nightly/issues/15
This commit is contained in:
parent
57808ca7cc
commit
c2a46070aa
8
.github/workflows/release-pkg.nu
vendored
8
.github/workflows/release-pkg.nu
vendored
@ -160,7 +160,13 @@ if $os in [$USE_UBUNTU, 'macos-latest'] {
|
||||
let archive = $'($dist)/($dest).tar.gz'
|
||||
|
||||
mkdir $dest
|
||||
$files | each {|it| mv $it $dest } | ignore
|
||||
$files | each {|it|
|
||||
if not ($it | path exists) {
|
||||
print $'(ansi r)($it) not exists, abort...(ansi reset)'
|
||||
exit 1
|
||||
}
|
||||
mv $it $dest
|
||||
} | ignore
|
||||
|
||||
print $'(char nl)(ansi g)Archive contents:(ansi reset)'; hr-line; ls $dest
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user