locker.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Locker - Lock stale issues
  2. on:
  3. schedule:
  4. - cron: '34 8 * * *' # Once per day, overnight PT, uncommon minute of hour
  5. workflow_dispatch:
  6. # Manual triggering through the GitHub UI, API, or CLI
  7. inputs:
  8. daysSinceClose:
  9. required: true
  10. default: "30"
  11. daysSinceUpdate:
  12. required: true
  13. default: "30"
  14. permissions:
  15. issues: write
  16. pull-requests: write
  17. jobs:
  18. main:
  19. runs-on: ubuntu-latest
  20. if: ${{ github.repository_owner == 'dotnet' }}
  21. steps:
  22. - name: Checkout Actions
  23. uses: actions/checkout@v4
  24. with:
  25. repository: "microsoft/vscode-github-triage-actions"
  26. path: ./actions
  27. ref: 066bee9cefa6f0b4bf306040ff36fc7d96a6d56d # Pin to commit: https://github.com/microsoft/vscode-github-triage-actions/commit/066bee9cefa6f0b4bf306040ff36fc7d96a6d56d
  28. - name: Install Actions
  29. run: npm install --production --prefix ./actions
  30. - name: Run Locker
  31. uses: ./actions/locker
  32. with:
  33. daysSinceClose: ${{ fromJson(inputs.daysSinceClose || 30) }}
  34. daysSinceUpdate: ${{ fromJson(inputs.daysSinceUpdate || 30) }}
  35. ignoredLabel: "Bot: Do Not Lock"
  36. typeIs: issue