mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2026-06-06 22:53:03 +02:00
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: 'Manage stale issues and PRs'
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '37 7 * * *'
|
|
workflow_dispatch:
|
|
inputs:
|
|
action:
|
|
description: "dry-run"
|
|
required: true
|
|
default: "apply"
|
|
type: choice
|
|
options:
|
|
- dryrun
|
|
- apply
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
stale:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/stale@v10
|
|
with:
|
|
any-of-labels: 'needs-more-info,answered'
|
|
labels-to-remove-when-unstale: 'needs-more-info,answered'
|
|
days-before-stale: 30
|
|
days-before-close: 7
|
|
stale-issue-label: stale
|
|
remove-stale-when-updated: true
|
|
close-issue-reason: completed
|
|
stale-issue-message: "If there are no further comments or activity on this issue, it'll be closed automatically in 7 days."
|
|
close-issue-message: "Automatically closing this issue due to inactivity, don't hesitate to open a new issue if needed."
|
|
debug-only: ${{ case(inputs.action == 'dryrun', true, false) }}
|