From bcb163e2674b62ba172890bf0f3b6dc04ed503ce Mon Sep 17 00:00:00 2001 From: Rokib Hasan Sagar <10854164+rokibhasansagar@users.noreply.github.com> Date: Sun, 14 Nov 2021 19:27:12 +0600 Subject: [PATCH] Update check_ubuntu.yml - Add PR Check - More Debug Info - Run on Push to Workflow File too Signed-off-by: rokibhasansagar <10854164+rokibhasansagar@users.noreply.github.com> --- .github/workflows/check_ubuntu.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_ubuntu.yml b/.github/workflows/check_ubuntu.yml index 30433ed..83187f6 100644 --- a/.github/workflows/check_ubuntu.yml +++ b/.github/workflows/check_ubuntu.yml @@ -1,10 +1,15 @@ name: slimhub_actions Check on Ubuntu on: + pull_request: + branches: [ main ] + paths: + - 'cleanup.sh' push: branches: [ main ] paths: - 'cleanup.sh' + - '.github/workflows/check_ubuntu.yml' workflow_dispatch: jobs: @@ -19,12 +24,18 @@ jobs: - name: Raw Environment Apt Checkup run: sudo apt list --installed - name: Cleanups - uses: rokibhasansagar/slimhub_actions@main + run: | + chmod a+x ./cleanup.sh + bash ./cleanup.sh - name: Post-Cleanup Apt Checkup run: sudo apt list --installed + - name: Check Top 20 Storage-hungry APT Packages + run: | + printf " MB - Package Name\n================\n" + dpkg-query -Wf '${db:Status-Status} ${Installed-Size}\t${Package}\n' | sed -ne 's/^installed //p' | sort -rh 2>/dev/null | head -n20 | awk '{print $1/1024, $2}' - name: Local Bin checks run: ls -lAog /usr/local/bin - - name: Glbal Bin checks + - name: Global Bin checks run: ls -lAog /usr/bin - name: Envirnment Variables Check run: printenv | sort