From: George Joseph Date: Tue, 14 May 2024 17:54:17 +0000 (-0600) Subject: .github: Add branches to workflow_dispatch for NightlyTests X-Git-Tag: 18.24.0-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=056d83043ef3123a0c8dab41d4b816899d59b1fa;p=thirdparty%2Fasterisk.git .github: Add branches to workflow_dispatch for NightlyTests (cherry picked from commit d2456e043698b04cb0138cc8b592e6f5a67b9a97) --- diff --git a/.github/workflows/NightlyTests.yml b/.github/workflows/NightlyTests.yml index 4d51dcd36c..3946920ecb 100644 --- a/.github/workflows/NightlyTests.yml +++ b/.github/workflows/NightlyTests.yml @@ -1,6 +1,11 @@ name: NightlyTests on: workflow_dispatch: + inputs: + branches: + required: false + type: string + description: "Array of branches to run: ['21','master']. Defaults to NIGHTLYTEST_BRANCHES" schedule: - cron: '0 2 * * *' @@ -18,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - branch: ${{ fromJSON(vars.NIGHTLYTEST_BRANCHES) }} + branch: ${{ fromJSON( ( inputs.branches || vars.NIGHTLYTEST_BRANCHES ) ) }} group: ${{ fromJSON(vars.NIGHTLYTEST_LIST) }} runs-on: ubuntu-latest steps: