Skip to content

Commit

Permalink
ci/cron: fix inputs (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Aug 6, 2024
1 parent b7807a3 commit a344966
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cron-clear-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
default: "pip"
required: false
type: string
age-days:
description: "setting the age of caches in days to be dropped"
required: true
type: number
default: 7

jobs:
drop-unused-caches:
Expand All @@ -26,4 +31,4 @@ jobs:
dry-run: ${{ github.event_name == 'pull_request' }}
# ise input if set of default...
pattern: ${{ inputs.pattern || 'pip|conda' }}
age-days: 2
age-days: ${{ fromJSON(inputs.age-days) || 2 }}

0 comments on commit a344966

Please sign in to comment.