SignorMercurio commented on code in PR #16539:
URL: https://github.com/apache/pulsar/pull/16539#discussion_r919870204


##########
.github/workflows/delete-workflow.yaml:
##########
@@ -0,0 +1,44 @@
+name: Delete old workflow runs
+on:
+  workflow_dispatch:
+    inputs:
+      days:
+        description: "Number of days."
+        required: true
+        default: 30
+      minimum_runs:
+        description: "The minimum runs to keep for each workflow."
+        required: true
+        default: 6
+      delete_workflow_pattern:
+        description: "The name or filename of the workflow. if not set then it 
will target all workflows."
+        required: false
+      delete_workflow_by_state_pattern:
+        description: "Remove workflow by state: active, deleted, 
disabled_fork, disabled_inactivity, disabled_manually"
+        required: true
+        default: "All"
+        type: choice
+        options:
+          - "All"
+          - active
+          - deleted
+          - disabled_inactivity
+          - disabled_manually
+      dry_run:
+        description: "Only log actions, do not perform any delete operations."
+        required: false
+
+jobs:
+  del_runs:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Delete workflow runs
+        uses: Mattraks/delete-workflow-runs@v2

Review Comment:
   Sure, I'll add the action to apache/pulsar-test-infra.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to