[Bug?]: Yarn CLI doesn't work except for install #11855
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
on: [issues] | |
name: 'Sherlock for Yarn' | |
jobs: | |
issue: | |
name: 'Running Sherlock' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: 'Always use the latest sherlock' | |
run: | | |
node ./scripts/run-yarn.js add @arcanis/sherlock | |
shell: bash | |
- name: 'Sherlock Payload' | |
id: sherlock-payload | |
uses: ./scripts/actions/local-yarn-command | |
with: | |
args: 'sherlock payload' | |
- name: 'Sherlock Execution' | |
if: ${{steps.sherlock-payload.outputs.outcome == 'success'}} | |
uses: ./scripts/actions/local-yarn-command | |
with: | |
args: 'sherlock exec' | |
- name: 'Sherlock Reporting' | |
if: ${{steps.sherlock-payload.outputs.outcome == 'success'}} | |
uses: ./scripts/actions/local-yarn-command | |
with: | |
args: 'sherlock report' | |
env: | |
GITHUB_TOKEN: ${{secrets.YARNBOT_TOKEN}} |