mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
- add concurrency groups to cancel the in-progress workflow if a new one is triggered - update and pin all action versions to full-length SHAs - update and pin all dependency versions to specific versions - ensure git credentials are not persisted when using actions/checkout
26 lines
673 B
YAML
26 lines
673 B
YAML
name: Lock inactive threads
|
||
|
||
on:
|
||
schedule:
|
||
- cron: "0 1 * * *"
|
||
|
||
permissions:
|
||
issues: write
|
||
discussions: write
|
||
pull-requests: write
|
||
|
||
concurrency:
|
||
group: lock-threads
|
||
cancel-in-progress: true
|
||
|
||
jobs:
|
||
lock-threads:
|
||
runs-on: ubuntu-24.04 # https://github.com/actions/runner-images
|
||
steps:
|
||
- name: Lock threads after 30 days of inactivity
|
||
uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # https://github.com/dessant/lock-threads/releases/tag/v5.0.1
|
||
with:
|
||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||
issue-inactive-days: 30
|
||
pr-inactive-days: 30
|
||
discussion-inactive-days: 30
|