coolify/.github/workflows/lock-threads.yaml
peaklabs-dev bc7850053d
ci: update and improve workflows
- 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
2025-12-01 21:47:28 +01:00

26 lines
673 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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