Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Collect parameter values as workflow_dispatch inputs
Browse files Browse the repository at this point in the history
And apply an additional cron schedule for testing
  • Loading branch information
jeffhandley authored Nov 29, 2023
1 parent 88a168b commit 67e6fbc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/locker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: Locker - Lock stale issues and PRs
on:
schedule:
- cron: '0 9 * * *'
- cron: '0 9 * * *' # Once per day, early morning PT
- cron: '0/5 * * * *' # Every 5 minutes (for testing)

workflow_dispatch:
# Manual triggering through the GitHub UI, API, or CLI
inputs:
daysSinceClose:
required: true
default: "30"
daysSinceUpdate:
required: true
default: "30"

permissions:
issues: write
Expand All @@ -25,5 +33,5 @@ jobs:
- name: Run Locker
uses: ./actions/locker
with:
daysSinceClose: 14
daysSinceUpdate: 14
daysSinceClose: ${{ fromJson(inputs.daysSinceClose || 30) }}
daysSinceUpdate: ${{ fromJson(inputs.daysSinceUpdate || 30) }}

0 comments on commit 67e6fbc

Please sign in to comment.