Skip to content

Commit

Permalink
Exit the release job if creating binary package failed (nushell#11145)
Browse files Browse the repository at this point in the history
Try to exit the job if creating binary package failed, related issue:
nushell/nightly#15
  • Loading branch information
hustcer authored and hardfau1t committed Dec 14, 2023
1 parent 038cf9c commit 1473781
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release-pkg.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1473781

Please sign in to comment.