From 296bacb0bb8bf57c9c763a7d5270b5c7ffd49148 Mon Sep 17 00:00:00 2001 From: "Simon A. F. Lund" Date: Wed, 30 Oct 2024 22:01:06 +0100 Subject: [PATCH] maintenance: add workflow that runs on all self-hosted runners To perform maintenance tasks, such as removing cached .qcow2 images, on self-hosted runners. This workflow can be expanded in the future to accommodate additional tasks. It aims to ensure that maintenance tasks run on all self-hosted runners to modify their state as needed. Signed-off-by: Simon A. F. Lund --- .github/workflows/maintenance.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/maintenance.yml diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml new file mode 100644 index 000000000..787a52a08 --- /dev/null +++ b/.github/workflows/maintenance.yml @@ -0,0 +1,27 @@ +name: maintenance_selfhosted + +on: + workflow_dispatch: + +jobs: + + maintenance: + strategy: + matrix: + runner: + - eqnx_qemuhost00 + - eqnx_qemuhost01 + - eqnx_qemuhost02 + - eqnx_qemuhost03 + - eqnx_qemuhost04 + + runs-on: ${{ matrix.runner }} + + steps: + - name: Get Runner Name + run: echo "This is running on runner ${{ runner.name }}" + + - name: Maintenance Task + run: | + # Your maintenance script or commands + echo "Running maintenance on ${{ runner.name }}"