Skip to content

Commit

Permalink
apt might show warnings, suppress them
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at authored Jan 23, 2024
1 parent b28fd19 commit 2299caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Check-and-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
secrets: inherit

0 comments on commit 2299caf

Please sign in to comment.