slimhub_actions/.github/workflows/check_ubuntu.yml

48 lines
1 KiB
YAML
Raw Permalink Normal View History

name: Cleaner Check on Ubuntu
2021-04-30 15:25:44 +06:00
on:
pull_request:
branches: [ main ]
paths:
- 'cleanup.sh'
2021-04-30 15:25:44 +06:00
push:
branches: [ main ]
paths:
- 'cleanup.sh'
- '.github/workflows/check_ubuntu.yml'
schedule:
- cron: '1 1 1 * *'
2021-05-13 15:31:08 +06:00
workflow_dispatch:
2021-04-30 15:25:44 +06:00
jobs:
cleanup:
if: github.repository == 'rokibhasansagar/slimhub_actions'
2021-04-30 15:25:44 +06:00
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
2021-04-30 15:25:44 +06:00
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
2021-04-30 15:25:44 +06:00
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