Skip to content

chore: Add lock workflow #6

chore: Add lock workflow

chore: Add lock workflow #6

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Lock threads

Invalid workflow file

The workflow is not valid. .github/workflows/lock.yml (Line: 19, Col: 5): Unexpected value 'steps' .github/workflows/lock.yml (Line: 18, Col: 5): Required property is missing: uses
- 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 }}