Skip to content

Lock Threads

Lock Threads #421

Workflow file for this run

name: 'Lock Threads'
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
id: lock
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-inactive-days: '365'
issue-lock-reason: ''
log-output: true
- name: Log processed threads
run: |
if [ '${{ steps.lock.outputs.issues }}' ]; then
echo "Issues:" && echo '${{ steps.lock.outputs.issues }}' | jq .
fi
if [ '${{ steps.lock.outputs.prs }}' ]; then
echo "Pull requests:" && echo '${{ steps.lock.outputs.prs }}' | jq .
fi