File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -479,10 +479,11 @@ jobs:
479479
480480 - name : Cloudberry Environment Initialization
481481 if : needs.check-skip.outputs.should_skip != 'true'
482+ shell : bash
482483 env :
483484 LOGS_DIR : install-logs
484485 run : |
485- set -ex pipefail
486+ set -eo pipefail
486487 if ! su - gpadmin -c "/tmp/init_system.sh"; then
487488 echo "::error::Container initialization failed"
488489 exit 1
@@ -512,8 +513,9 @@ jobs:
512513
513514 - name : Verify DEB artifacts
514515 id : verify-artifacts
516+ shell : bash
515517 run : |
516- set -ex pipefail
518+ set -eo pipefail
517519
518520 DEB_FILE=$(ls "${GITHUB_WORKSPACE}"/deb_build_artifacts/*.deb)
519521 if [ ! -f "${DEB_FILE}" ]; then
@@ -559,12 +561,13 @@ jobs:
559561 } 2>&1 | tee -a install-logs/details/deb-verification.log
560562
561563 - name : Install Cloudberry DEB
564+ shell : bash
562565 env :
563566 DEB_FILE : ${{ steps.verify-artifacts.outputs.deb_file }}
564567 DEB_VERSION : ${{ steps.verify-artifacts.outputs.version }}
565568 DEB_RELEASE : ${{ steps.verify-artifacts.outputs.release }}
566569 run : |
567- set -ex pipefail
570+ set -eo pipefail
568571
569572 if [ -z "${DEB_FILE}" ]; then
570573 echo "::error::DEB_FILE environment variable is not set"
@@ -583,7 +586,7 @@ jobs:
583586
584587 # Install DEB
585588 echo "Starting installation..."
586- if ! apt -y install "${DEB_FILE}"; then
589+ if ! apt-get update && apt-get -y install "${DEB_FILE}"; then
587590 echo "::error::DEB installation failed"
588591 exit 1
589592 fi
You can’t perform that action at this time.
0 commit comments