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:
parent
29d98e966b
commit
bcb163e267
1 changed files with 13 additions and 2 deletions
15
.github/workflows/check_ubuntu.yml
vendored
15
.github/workflows/check_ubuntu.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue