From 37bf11f6a2eb9be30e90294e19e1028bbc0715cc Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 30 Jun 2024 11:22:53 -0300 Subject: [PATCH] chore: Update branch checkout description in TypeScript test workflow --- .github/workflows/typescript_test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/typescript_test.yml b/.github/workflows/typescript_test.yml index a06020f44..93dcb1101 100644 --- a/.github/workflows/typescript_test.yml +++ b/.github/workflows/typescript_test.yml @@ -4,8 +4,8 @@ on: workflow_dispatch: inputs: branch: - description: "Branch to run tests on" - required: true + description: "(Optional) Branch to checkout" + required: false type: string pull_request: merge_group: @@ -33,6 +33,10 @@ jobs: steps: - name: Checkout code 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 uses: actions/setup-node@v4