From d2bab2ed002500bee4842fcf3358cc3ad202e791 Mon Sep 17 00:00:00 2001 From: Peter Murray <681306+peter-murray@users.noreply.github.com> Date: Fri, 29 Apr 2022 16:23:08 +0100 Subject: [PATCH] Update test_organization_installed.yml --- .github/workflows/test_organization_installed.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_organization_installed.yml b/.github/workflows/test_organization_installed.yml index cec83af..85f05b0 100644 --- a/.github/workflows/test_organization_installed.yml +++ b/.github/workflows/test_organization_installed.yml @@ -5,14 +5,26 @@ name: Test Success - organization - installed on: push: workflow_dispatch: + inputs: + branch: + description: The name of the branch to checkout for the action + required: true + default: main jobs: test: runs-on: ubuntu-latest steps: + - name: Checkout specified branch + if: github.event_name == 'workflow_dispatch' + uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.branch }} + - name: Checkout - uses: actions/checkout@v2 + if: github.event_name != 'workflow_dispatch' + uses: actions/checkout@v3 - name: Use action id: use_action