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>
This commit is contained in:
Rokib Hasan Sagar 2021-11-14 19:27:12 +06:00 committed by rokibhasansagar
parent 29d98e966b
commit bcb163e267
No known key found for this signature in database
GPG key ID: 2A43163956D6C2A7

View file

@ -1,10 +1,15 @@
name: slimhub_actions Check on Ubuntu name: slimhub_actions Check on Ubuntu
on: on:
pull_request:
branches: [ main ]
paths:
- 'cleanup.sh'
push: push:
branches: [ main ] branches: [ main ]
paths: paths:
- 'cleanup.sh' - 'cleanup.sh'
- '.github/workflows/check_ubuntu.yml'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -19,12 +24,18 @@ jobs:
- name: Raw Environment Apt Checkup - name: Raw Environment Apt Checkup
run: sudo apt list --installed run: sudo apt list --installed
- name: Cleanups - name: Cleanups
uses: rokibhasansagar/slimhub_actions@main run: |
chmod a+x ./cleanup.sh
bash ./cleanup.sh
- name: Post-Cleanup Apt Checkup - name: Post-Cleanup Apt Checkup
run: sudo apt list --installed 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 - name: Local Bin checks
run: ls -lAog /usr/local/bin run: ls -lAog /usr/local/bin
- name: Glbal Bin checks - name: Global Bin checks
run: ls -lAog /usr/bin run: ls -lAog /usr/bin
- name: Envirnment Variables Check - name: Envirnment Variables Check
run: printenv | sort run: printenv | sort