Files
better-auth/.github/workflows/lock-threads.yml
T
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2edeb33228 chore(deps): bump the github-actions group across 1 directory with 12 updates (#9827)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-11 17:13:18 -07:00

39 lines
1017 B
YAML

# cSpell:words dessant
name: Lock Threads
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions: {}
concurrency:
group: lock-threads
jobs:
lock:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
if: github.repository_owner == 'better-auth'
steps:
- name: Generate App Token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
if: vars.RELEASE_APP_ID != ''
with:
app-id: ${{ vars.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
with:
github-token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
process-only: 'issues, prs'
issue-inactive-days: 7
pr-inactive-days: 7
add-issue-labels: 'locked'
add-pr-labels: 'locked'
log-output: true