-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 976 Bytes
/
maintenance.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
name: Runner maintenance
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets a schedule for executing the jobs
schedule:
- cron: "10 20 * * 2,4"
permissions:
id-token: write
contents: read
jobs:
macos-maintenance:
# Sets a matrix of labels on which to run the scripts
strategy:
matrix:
runner:
- mac-1
- mac-2
- mac-3
- mac-4
# The job will run in parallel for each of the runner labels listed above
runs-on:
- docker
- self-hosted
- ${{ matrix.runner }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Runs a set of commands using the runners shell
- name: Docker cleanup
run: docker system prune -fa
- name: Runner upgrades
run: |
brew upgrade
brew bundle --file Brewfile --no-lock