]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
.github: Add branches to workflow_dispatch for NightlyTests
authorGeorge Joseph <gjoseph@sangoma.com>
Tue, 14 May 2024 17:54:17 +0000 (11:54 -0600)
committerGeorge Joseph <gjoseph@sangoma.com>
Tue, 14 May 2024 18:07:48 +0000 (12:07 -0600)
.github/workflows/NightlyTests.yml

index 4d51dcd36c74e67b667e3f7ad29b87d7b0cdf607..3946920ecbf01f6bad813e92052cf83d4859e388 100644 (file)
@@ -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: