]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 11 Jul 2024 13:23:24 +0000 (13:23 +0000)
(cherry picked from commit 12b997312b8f9cf1d26a20b423fa4a43324adf6c)

.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: