Skip to content

Commit

Permalink
ci(workflows): [lock-inactive-threads] use bot token
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Apr 12, 2024
1 parent 7c106f0 commit cfa5e8d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/lock-inactive-threads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ name: lock-inactive-threads
on:
schedule:
- cron: 0 0 * * *
permissions:
issues: write
pull-requests: write
jobs:
lock-inactive-threads:
runs-on: ubuntu-latest
steps:
- id: bot-token
name: Get bot token
uses: actions/[email protected]
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- id: lock
name: Lock inactive issues and pull requests
uses: dessant/[email protected]
with:
github-token: ${{ steps.bot-token.outputs.token }}
issue-comment: |
This issue has been automatically locked since there has not been any recent activity
after it was closed. Please open a new issue for related bugs or features. Be sure to
Expand Down

0 comments on commit cfa5e8d

Please sign in to comment.