-
Notifications
You must be signed in to change notification settings - Fork 45
47 lines (44 loc) · 1.03 KB
/
check_ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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