mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-10-28 16:36:04 +08:00
Remove twoslash-repros workflow (#63675)
This commit is contained in:
1 parent
637d5746b7
commit
cc5c6e2d32
1 file changed
-89
@@ -1,89 +0,0 @@
|
||||
name: Twoslash Code Sample Repros
|
||||
|
||||
on:
|
||||
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
|
||||
|
||||
# Inputs provided by the bot
|
||||
distinct_id:
|
||||
description: '(bot) A distinct ID'
|
||||
required: false
|
||||
default: ''
|
||||
source_issue:
|
||||
description: '(bot) The issue that triggered this workflow'
|
||||
required: false
|
||||
default: ''
|
||||
requesting_user:
|
||||
description: '(bot) The user who requested this workflow'
|
||||
required: false
|
||||
default: ''
|
||||
status_comment:
|
||||
description: '(bot) The comment to update with the status of this workflow'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
run-name: ${{ github.workflow }}${{ inputs.distinct_id && format(' (bot run {0})', inputs.distinct_id) || '' }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
# 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
|
||||
environment:
|
||||
name: azure
|
||||
deployment: false
|
||||
steps:
|
||||
- if: ${{ github.event.inputs.bisect }}
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
with:
|
||||
filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
|
||||
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.
|
||||
persist-credentials: false
|
||||
- if: ${{ !github.event.inputs.bisect }}
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0
|
||||
with:
|
||||
client-id: ${{ vars.AZURE_CLIENT_ID }}
|
||||
tenant-id: ${{ vars.AZURE_TENANT_ID }}
|
||||
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
|
||||
- name: Create GitHub App token
|
||||
id: app-token
|
||||
uses: microsoft/create-github-app-token-via-key-vault@5ba0d436e9c3cac52feff4d1f2f66f9698ce4a2d # v1
|
||||
with:
|
||||
client-id: ${{ vars.TYPESCRIPT_AUTOMATION_GITHUB_APP_CLIENT_ID }}
|
||||
key-id: ${{ vars.TYPESCRIPT_AUTOMATION_GITHUB_APP_KEY_ID }}
|
||||
owner: microsoft
|
||||
repositories: TypeScript
|
||||
permission-contents: write
|
||||
permission-issues: write
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
|
||||
with:
|
||||
github-token: ${{ steps.app-token.outputs.token }}
|
||||
issue: ${{ github.event.inputs.issue }}
|
||||
bisect: ${{ github.event.inputs.bisect }}
|
||||
Reference in new issue
Block a user