Twoslash Code Sample Repros #690
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: Twoslash Code Sample Repros | |
on: | |
push: | |
branches: | |
- orta-twoslash-repros | |
schedule: | |
- cron: '0 8 * * *' | |
repository_dispatch: | |
types: run-twoslash-repros | |
workflow_dispatch: | |
inputs: | |
issue: | |
description: Limits run to a single issue. | |
required: false | |
type: string | |
bisect: | |
description: If set, runs a git bisect on an existing repro. Requires 'issue' to be set. Value can be revision labels (e.g. `good v4.7.3 bad main`) or `true` to infer bisect range. | |
required: false | |
type: string | |
permissions: | |
contents: read | |
# Ensure scripts are run with pipefail. See: | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
run: | |
if: ${{ github.repository == 'microsoft/TypeScript' }} | |
runs-on: ubuntu-latest | |
steps: | |
- if: ${{ github.event.inputs.bisect }} | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- if: ${{ !github.event.inputs.bisect }} | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master | |
with: | |
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} | |
issue: ${{ github.event.inputs.issue }} | |
bisect: ${{ github.event.inputs.bisect }} |