From 91aca173a8201b2e18105e5ca6c78c4ec9523d0f Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 11 Feb 2025 09:41:05 -0500 Subject: [PATCH] add github workflow for clean-ci Signed-off-by: Patrick Donnelly --- .github/workflows/clean-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/clean-ci.yml diff --git a/.github/workflows/clean-ci.yml b/.github/workflows/clean-ci.yml new file mode 100644 index 00000000000..e35725ea604 --- /dev/null +++ b/.github/workflows/clean-ci.yml @@ -0,0 +1,25 @@ +name: Cleanup ceph-ci.git +run-name: ${{ github.actor }} cleaning up ceph-ci.git branches +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: # allow manual triggering +jobs: + Clean-CI: + runs-on: ubuntu-latest + steps: + - name: checkout ceph-ci.git + uses: actions/checkout@v4 + with: + path: ceph-ci + + - name: checkout ceph.git + uses: actions/checkout@v4 + with: + repository: ceph/ceph.git + path: ceph-ci/ceph + ref: main + + - name: run clean-ci + run: ./ceph/src/script/clean-ci --remote=origin + working-directory: ./ceph-ci -- 2.39.5