Skip to content

Commit

Permalink
upgrade delete workflow runs
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Nov 8, 2024
1 parent c6bcb99 commit 80ed895
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cleanup-cron-workflow-runs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Scheduled cleanup old workflow runs
on:
schedule:
- cron: '0 0 * * 0'
- cron: "0 0 * * 0"
# At 00:00 on Sunday.

jobs:
Expand All @@ -11,9 +11,9 @@ jobs:
actions: write
steps:
- name: Delete workflow runs
uses: Mattraks/[email protected].4
uses: Mattraks/[email protected].6
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 15
keep_minimum_runs: 10
keep_minimum_runs: 10
6 changes: 3 additions & 3 deletions .github/workflows/cleanup-workflow-runs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
workflow_dispatch:
inputs:
days:
description: 'Number of days.'
description: "Number of days."
required: true
default: 15
minimum_runs:
description: 'The minimum runs to keep for each workflow.'
description: "The minimum runs to keep for each workflow."
required: true
default: 10
jobs:
Expand All @@ -17,7 +17,7 @@ jobs:
actions: write
steps:
- name: Delete workflow runs
uses: Mattraks/[email protected].4
uses: Mattraks/[email protected].6
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
Expand Down

0 comments on commit 80ed895

Please sign in to comment.