chore: Run from components #10
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: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup lock-discussion project | ||
run: | | ||
# cp -r components/.github/workflows/lock-discussion lock-discussion | ||
# cd lock-discussion | ||
cd components/.github/workflows/lock-discussion | ||
npm i --force | ||
- name: Run lock discussion | ||
run: | | ||
cd components/.github/workflows/lock-discussion | ||
npm run lock --TOKEN=${{ secrets.GITHUB_TOKEN }} |