mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Use env variable
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
5985d506f1
commit
1a9dbec83c
1 changed files with 5 additions and 2 deletions
7
.github/workflows/stale.yml
vendored
7
.github/workflows/stale.yml
vendored
|
@ -6,6 +6,9 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
|
|
||||||
|
env:
|
||||||
|
stale_label: stale
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale_action:
|
stale_action:
|
||||||
if: github.event_name != 'issue_comment'
|
if: github.event_name != 'issue_comment'
|
||||||
|
@ -20,7 +23,7 @@ jobs:
|
||||||
days-before-stale: 30
|
days-before-stale: 30
|
||||||
days-before-close: 5
|
days-before-close: 5
|
||||||
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.'
|
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.'
|
||||||
stale-issue-label: 'stale'
|
stale-issue-label: $stale_label
|
||||||
exempt-issue-labels: 'Internal, Fixed in next release, Bug: Confirmed, Documentation Needed'
|
exempt-issue-labels: 'Internal, Fixed in next release, Bug: Confirmed, Documentation Needed'
|
||||||
exempt-all-issue-assignees: true
|
exempt-all-issue-assignees: true
|
||||||
operations-per-run: 300
|
operations-per-run: 300
|
||||||
|
@ -36,7 +39,7 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3.4.0
|
uses: actions/checkout@v3.4.0
|
||||||
- name: Remove 'stale' label
|
- name: Remove 'stale' label
|
||||||
run: gh issue edit ${{ github.event.issue.number }} --remove-label 'stale'
|
run: gh issue edit ${{ github.event.issue.number }} --remove-label $stale_label
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue