👷 Merge lock & cleanup into one workflow

This commit is contained in:
Gina Häußge committed 2021-01-15 15:41:41 +01:00
1 parent 19f774429f
commit e23d3b88f9
2 files changed
+13 -18

No files matched your search

@@ -1,11 +1,23 @@
name: "Issue cleanup"
name: "Cleanup issues & PRs"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
lock:
name: 🔒 Lock issues & PRs closed over a year
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-comment: ""
pr-lock-comment: ""
cleanup:
name: 🧹 Close issues marked as incomplete & older than 14 days
runs-on: ubuntu-latest
steps:
- id: date
@@ -15,7 +27,6 @@ jobs:
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
query: "is:issue is:open label:incomplete created:<${{ steps.date.outputs.CUTOFF }}"
dry-run: true
comment: >
Since apparently some of the required information is still missing, this will be
closed now, sorry. Feel free to request a reopen of this or create a new issue
-16
View File
@@ -1,16 +0,0 @@
name: "Lock outdated issues & PRs"
on:
schedule:
- cron: "0 0 * * *"
jobs:
lock:
runs-on: ubuntu-latest
steps:
- name: 🔒 Lock issues & PRs closed over a year
uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-comment: ""
pr-lock-comment: ""