Skip to content

Commit

Permalink
Create locker.yml (#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavAntonyuk authored Nov 17, 2024
1 parent e46c39e commit 871e1e6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/locker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Locker - Lock stale issues and PRs
on:
schedule:
- cron: '0 9 * * *' # Once per day, early morning PT

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

permissions:
issues: write
pull-requests: write

jobs:
main:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'dotnet' }}
steps:
- name: Checkout Actions
uses: actions/checkout@v4
with:
repository: "microsoft/vscode-github-triage-actions"
path: ./actions
ref: 066bee9cefa6f0b4bf306040ff36fc7d96a6d56d # locker action commit sha
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run Locker
uses: ./actions/locker
with:
daysSinceClose: ${{ fromJson(inputs.daysSinceClose || 1) }}
daysSinceUpdate: ${{ fromJson(inputs.daysSinceUpdate || 1) }}

0 comments on commit 871e1e6

Please sign in to comment.