chore: Add lock workflow #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lock threads | ||
on: | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
permissions: | ||
discussions: write | ||
jobs: | ||
lock-discussion: | ||
secrets: inherit | ||
steps: | ||
Check failure on line 19 in .github/workflows/lock.yml GitHub Actions / Lock threadsInvalid workflow file
|
||
- name: Setup lock-discussion project | ||
run: | | ||
cp -r actions/.github/workflows/lock-discussion lock-discussion | ||
cd lock-discussion | ||
npm i --force | ||
- name: Run lock discussion | ||
run: | | ||
cd lock-discussion | ||
npm run lock --TOKEN=${{ secrets.GITHUB_TOKEN }} |