You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/stale.yml
+24-4
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,44 @@ name: Mark stale issues
2
2
3
3
on:
4
4
schedule:
5
-
- cron: "0 8 * * *"
5
+
- cron: '0 8 * * *'
6
6
workflow_dispatch:
7
+
issue_comment:
8
+
9
+
env:
10
+
stale_label: stale
7
11
8
12
jobs:
9
-
stale:
13
+
stale_action:
14
+
if: github.event_name != 'issue_comment'
10
15
runs-on: ubuntu-latest
11
16
permissions:
12
17
issues: write
13
18
14
19
steps:
15
-
- uses: actions/stale@v7.0.0
20
+
- uses: actions/stale@v8.0.0
16
21
with:
17
22
repo-token: ${{ secrets.GITHUB_TOKEN }}
18
23
days-before-stale: 30
19
24
days-before-close: 5
20
25
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days."
21
-
stale-issue-label: "stale"
26
+
stale-issue-label: $stale_label
22
27
exempt-issue-labels: "Bug, WIP, Fixed In Next Release, Internal, Never Stale"
23
28
exempt-all-issue-assignees: true
24
29
operations-per-run: 300
25
30
close-issue-reason: "not_planned"
31
+
32
+
remove_stale: # trigger "stale" removal immediately when stale issues are commented on
# source version file to check if $DOCKER_VERSION is set
1203
+
. /etc/pihole/versions
1204
+
GetPADDInformation
1205
+
if [ -z"${padd_version_latest}" ];then
1206
+
padd_version_latest="N/A"
1207
+
fi
1208
+
if [ -n"${DOCKER_VERSION}" ];then
1209
+
# Check for latest Docker version
1210
+
GetVersionInformation
1211
+
printf"%s${clear_line}\n"" PADD version is ${padd_version} as part of Docker ${docker_version_heatmap}${DOCKER_VERSION}${reset_text} (Latest Docker: ${GITHUB_DOCKER_VERSION})"
0 commit comments