From 0fa439c579f7a613fe53ab2906b2692d13a050d0 Mon Sep 17 00:00:00 2001 From: shashwata Date: Wed, 17 Apr 2024 13:55:10 +0600 Subject: [PATCH] update: workflow trigger --- .github/workflows/del.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/del.yml b/.github/workflows/del.yml index 66c5eaabf3..ba05019d5f 100644 --- a/.github/workflows/del.yml +++ b/.github/workflows/del.yml @@ -1,22 +1,24 @@ name: Delete old workflow runs on: - # schedule: + # schedule: # - cron: '0 0 1 * *' - workflow_dispatch: + workflow_dispatch: + push: + branches: [del_workflow] # Run monthly, at 00:00 on the 1st day of month. jobs: - del_runs: - runs-on: ubuntu-latest - permissions: - actions: write - contents: read - steps: - - name: Delete workflow runs - uses: Mattraks/delete-workflow-runs@v2 - with: - token: ${{ github.token }} - repository: ${{ github.repository }} - retain_days: 60 - keep_minimum_runs: 20 - delete_workflow_pattern: api-tests.yml \ No newline at end of file + del_runs: + runs-on: ubuntu-latest + permissions: + actions: write + contents: read + steps: + - name: Delete workflow runs + uses: Mattraks/delete-workflow-runs@v2 + with: + token: ${{ github.token }} + repository: ${{ github.repository }} + retain_days: 60 + keep_minimum_runs: 2 + delete_workflow_pattern: api-tests.yml