Skip to content

Commit

Permalink
Merge pull request #96 from ossfellow/ossfellow-patch-1-1
Browse files Browse the repository at this point in the history
fix: Update maintenance.yml
  • Loading branch information
ossfellow authored Jan 1, 2025
2 parents 271d0f5 + 84e74a6 commit f274340
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ on:
required: false
keep_versions:
description: "Number of package versions to keep"
type: number
default: 3
type: string
default: '3'
required: false
artifact_type:
description: "Type of artifact to clean"
Expand All @@ -32,13 +32,13 @@ on:
required: false
retention_days:
description: "Days to retain action runs"
type: number
default: 90
type: string
default: '90'
required: false
workflows:
description: 'Workflows to clean (comma-separated or "all")'
workflow_states:
description: 'Workflow states (e.g. deleted, disabled_fork, etc.) to clean (comma-separated or "ALL")'
type: string
default: "all"
default: "ALL"
required: false

jobs:
Expand All @@ -49,9 +49,9 @@ jobs:
- name: Delete old package versions
uses: actions/delete-package-versions@v5
with:
package-name: ${{ inputs.packages || 'sopseed,sopseed-chart' }}
package-name: ${{ inputs.packages || 'sopseed,sopseed-chart/sopseed' }}
package-type: ${{ inputs.artifact_type || 'container' }}
min-versions-to-keep: ${{ inputs.keep_versions || 3 }}
min-versions-to-keep: ${{ inputs.keep_versions || '3' }}
token: ${{ secrets.GITHUB_TOKEN }}

actions-cleanup:
Expand All @@ -63,7 +63,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: ${{ inputs.retention_days || 90 }}
keep_minimum_runs: 1
delete_workflow_by_state_pattern: "All"
delete_workflow_pattern: ${{ inputs.workflows || 'all' }}
retain_days: ${{ inputs.retention_days || '90' }}
keep_minimum_runs: '1'
delete_workflow_by_state_pattern: ${{ inputs.workflow_states || 'ALL' }}

0 comments on commit f274340

Please sign in to comment.