Skip to content

chore: Add lock workflow #7

chore: Add lock workflow

chore: Add lock workflow #7

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:
steps:

Check failure on line 18 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: 18, Col: 5): Required property is missing: runs-on
- 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 }}