mirror of
https://github.com/esphome/esphome.git
synced 2025-07-28 14:16:40 +00:00
Use shared workflow for locking (#9211)
This commit is contained in:
parent
23b1e428de
commit
9daa9a6de8
23
.github/workflows/lock.yml
vendored
23
.github/workflows/lock.yml
vendored
@ -1,28 +1,11 @@
|
|||||||
---
|
---
|
||||||
name: Lock
|
name: Lock closed issues and PRs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 0 * * *"
|
- cron: "30 0 * * *" # Run daily at 00:30 UTC
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: lock
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lock:
|
lock:
|
||||||
runs-on: ubuntu-latest
|
uses: esphome/workflows/.github/workflows/lock.yml@main
|
||||||
steps:
|
|
||||||
- uses: dessant/lock-threads@v5.0.1
|
|
||||||
with:
|
|
||||||
pr-inactive-days: "1"
|
|
||||||
pr-lock-reason: ""
|
|
||||||
exclude-any-pr-labels: keep-open
|
|
||||||
|
|
||||||
issue-inactive-days: "7"
|
|
||||||
issue-lock-reason: ""
|
|
||||||
exclude-any-issue-labels: keep-open
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user