From 2299caff77ed6828cedb6a2302dd9979f8cad049 Mon Sep 17 00:00:00 2001 From: Omar Siam Date: Tue, 23 Jan 2024 20:56:32 +0100 Subject: [PATCH] apt might show warnings, suppress them --- .github/workflows/Check-and-update.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Check-and-update.yaml b/.github/workflows/Check-and-update.yaml index b7a50c2..d6122e0 100644 --- a/.github/workflows/Check-and-update.yaml +++ b/.github/workflows/Check-and-update.yaml @@ -19,11 +19,11 @@ jobs: run: | docker pull ghcr.io/acdh-oeaw/herokuish-for-cypress/main:latest-22 check_result="$(docker run --rm -u 0:0 --entrypoint /bin/sh ghcr.io/acdh-oeaw/herokuish-for-cypress/main:latest-22 \ - -c 'apt-get update >/dev/null; if [ $(apt list --upgradable 2>/dev/null | wc -l) != 1 ]; then echo -n need to upgrade; else echo -n everything fine ; fi')" + -c 'apt-get update 2>/dev/null >/dev/null; if [ $(apt list --upgradable 2>/dev/null | wc -l) != 1 ]; then echo -n need to upgrade; else echo -n everything fine ; fi')" echo "$check_result" echo "check_result=$check_result" >> $GITHUB_OUTPUT call_delploy: needs: [check_for_updates] if: needs.check_for_updates.outputs.check_result == 'need to upgrade' uses: ./.github/workflows/Build-and-push.yaml - secrets: inherit \ No newline at end of file + secrets: inherit