Update workflow trigger #1
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: Knip | |
on: | |
pull_request_target: | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
run-knip: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.10.0 | |
- name: Install toolchain | |
run: yarn install | |
- name: Report knip results to pull request | |
uses: Codex-/knip-reporter@v2 | |
with: | |
verbose: true | |
comment_id: ${{ github.workflow }}-reporter | |
command_script_name: knip-ci | |
annotations: true | |
ignore_results: false |