]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
add github workflow for clean-ci main
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 11 Feb 2025 14:41:05 +0000 (09:41 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 11 Feb 2025 20:35:54 +0000 (15:35 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
.github/workflows/clean-ci.yml [new file with mode: 0644]

diff --git a/.github/workflows/clean-ci.yml b/.github/workflows/clean-ci.yml
new file mode 100644 (file)
index 0000000..e35725e
--- /dev/null
@@ -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