5839b6f7c1
- Whole script is changed/adapted/improved for better handling and better result - Use 'retain' input key to force retain your preferred program Read more on README.md file Signed-off-by: rokibhasansagar <10854164+rokibhasansagar@users.noreply.github.com>
47 lines
1 KiB
YAML
47 lines
1 KiB
YAML
name: Cleaner Check on Ubuntu
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'cleanup.sh'
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'cleanup.sh'
|
|
- '.github/workflows/check_ubuntu.yml'
|
|
schedule:
|
|
- cron: '1 1 1 * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
cleanup:
|
|
if: github.repository == 'rokibhasansagar/slimhub_actions'
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-20.04, ubuntu-22.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: 'main'
|
|
- name: Raw Environment Checkup
|
|
continue-on-error: true
|
|
env:
|
|
wf_os: ${{matrix.os}}
|
|
state: raw
|
|
run: |
|
|
bash ./.github/checker.sh
|
|
- name: Cleanup Workspace
|
|
uses: rokibhasansagar/slimhub_actions@main
|
|
with:
|
|
retain: "homebrew"
|
|
- name: Clean Environment Checkup
|
|
continue-on-error: true
|
|
env:
|
|
wf_os: ${{matrix.os}}
|
|
state: clean
|
|
run: |
|
|
bash ./.github/checker.sh
|