fixup(ci:upload): Treat failure to add debs to repository as error
This commit is contained in:
parent
42370d19c5
commit
5b8b15e7aa
6
.github/workflows/packages.yml
vendored
6
.github/workflows/packages.yml
vendored
@ -214,7 +214,8 @@ jobs:
|
||||
|
||||
# Publishing repository changes.
|
||||
if [ "$uploaded_files" = "true" ]; then
|
||||
aptly_add_to_repo
|
||||
if ! aptly_add_to_repo
|
||||
exit 1
|
||||
|
||||
# Usually temporary directory is deleted automatically, but in certain cases it is left.
|
||||
aptly_delete_dir
|
||||
@ -251,7 +252,8 @@ jobs:
|
||||
|
||||
# Publishing repository changes.
|
||||
if [ "$uploaded_files" = "true" ]; then
|
||||
aptly_add_to_repo
|
||||
if ! aptly_add_to_repo
|
||||
exit 1
|
||||
|
||||
# Usually temporary directory is deleted automatically, but in certain cases it is left.
|
||||
aptly_delete_dir
|
||||
|
@ -78,7 +78,9 @@ aptly_add_to_repo() {
|
||||
fi
|
||||
else
|
||||
echo "[$(date +%H:%M:%S)] Error: got http_status_code == '$http_status_code', packages may not appear in repository."
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
aptly_publish_repo() {
|
||||
|
Loading…
Reference in New Issue
Block a user