]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
.github: Reduce number of inputs to Releaser to 10.
authorGeorge Joseph <gjoseph@sangoma.com>
Fri, 18 Jul 2025 17:26:37 +0000 (11:26 -0600)
committerGeorge Joseph <gjoseph@sangoma.com>
Fri, 18 Jul 2025 17:26:37 +0000 (11:26 -0600)
The max number of inputs supported by GitHub is 10 so
is_security and is_hotfix were factored into a single choice
entry.

.github/workflows/Releaser.yml

index 1f6b67cdbe3f67c5267d14f3524360daf632a475..94f1870d803ad4d7d211c683a97869be2aee6d37 100644 (file)
@@ -3,6 +3,16 @@ run-name: ${{ github.actor }} is creating ${{vars.PRODUCT_NAME}} release ${{inpu
 on:
   workflow_dispatch:
     inputs:
+      release_type:
+        description: |
+          Release Type:
+        required: true
+        type: choice
+        options:
+          - STANDARD
+          - SECURITY
+          - HOTFIX
+        default: STANDARD
       new_version:
         description: |
           New Version:
@@ -11,27 +21,13 @@ on:
             certified-20.4-cert1-rc1, certified-20.4-cert1
         required: true
         type: string
-      is_security:
-        description: |
-          Security?
-          (No prev RCs)
-        required: true
-        type: boolean
-        default: false
       advisories:
         description: |
-          Comma separated list of advisories.
+          Comma separated list of advisories for SECURITY releases.
           NO SPACES
           Example: GHSA-4xjp-22g4-9fxm,GHSA-4xjp-22g4-zzzz
         required: false
         type: string
-      is_hotfix:
-        description: |
-          Hotfix?
-          (A patch release but not security.  No prev RCs)
-        required: true
-        type: boolean
-        default: false
       skip_cherry_pick:
         description: |
           Skip automatic cherry-pick for regular RC1 releases? USE WITH CAUTION!
@@ -79,10 +75,9 @@ jobs:
   Releaser:
     uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskRelease.yml@main
     with:
+      release_type: ${{inputs.release_type}}
       new_version: ${{inputs.new_version}}
-      is_security: ${{inputs.is_security}}
       advisories: ${{inputs.advisories}}
-      is_hotfix: ${{inputs.is_hotfix}}
       skip_cherry_pick: ${{inputs.skip_cherry_pick}}
       force_cherry_pick: ${{inputs.force_cherry_pick}}
       skip_test_builds: ${{inputs.skip_test_builds}}