-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (43 loc) · 1.16 KB
/
close-stale.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Author: Hari Sekhon
# Date: 2022-02-16 12:36:04 +0000 (Wed, 16 Feb 2022)
#
# vim:ts=2:sts=2:sw=2:et
#
# https://github.com/HariSekhon/GitHub-Actions
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# C l o s e S t a l e I s s u e s a n d P R s
# ============================================================================ #
---
name: Close Stale Issues and PRs
on:
workflow_call:
inputs:
debug:
type: string
required: false
default: false
permissions:
issues: write
pull-requests: write
defaults:
run:
shell: bash -euxo pipefail {0}
env:
DEBUG: ${{ inputs.debug == true || github.event.inputs.debug == 'true' || '' }}
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
exempt-issue-labels: pinned
stale-pr-label: stale
stale-issue-label: stale