chore: Update branch checkout description in TypeScript test workflow

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-30 11:22:53 -03:00
commit 37bf11f6a2

View file

@ -4,8 +4,8 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
branch: branch:
description: "Branch to run tests on" description: "(Optional) Branch to checkout"
required: true required: false
type: string type: string
pull_request: pull_request:
merge_group: merge_group:
@ -33,6 +33,10 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
# If branch is passed as input, checkout that branch
# else checkout the default branch
ref: ${{ github.event.inputs.branch || github.ref }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4