Skip to content

Commit cb8ddd9

Browse files
authored
1 parent 796be45 commit cb8ddd9

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Diff for: .github/workflows/twoslash-repros.yaml

+18-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,31 @@ on:
88
- cron: '0 8 * * *'
99
repository_dispatch:
1010
types: run-twoslash-repros
11+
issues:
12+
types:
13+
- labeled
1114
workflow_dispatch: {}
1215

1316
jobs:
14-
build:
17+
run:
18+
if: ${{ !github.event.label }}
1519
runs-on: ubuntu-latest
1620
steps:
1721
- name: Use node
1822
uses: actions/setup-node@v1
19-
- run: |
20-
npm init -y
21-
npm install --save typescript@next
2223
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
2324
with:
2425
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
26+
27+
bisect:
28+
if: ${{ github.event.label.name == "Bisect Repro" }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: actions/setup-node
33+
with:
34+
node-version: 16
35+
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
36+
with:
37+
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
38+
bisect: ${{ github.event.issue.number }}

0 commit comments

Comments
 (0)