From 8b542dfa681f2bf4961d78ca8ca40f61887b5f86 Mon Sep 17 00:00:00 2001
From: Laurent Laville <laurent.laville@gmail.com>
Date: Tue, 5 Nov 2024 09:35:13 +0000
Subject: [PATCH] upgrade release workflow to allow to install only required
 dependencies (no vendor-bin)

---
 .github/workflows/release.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2f6a041..773eef5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -6,6 +6,12 @@ on:
         tags:
             - "[0-9]+.[0-9]+.[0-9]+"
     workflow_dispatch:
+        inputs:
+            composer-options:
+                description: "Composer options for ramsey/composer-install GitHub Action"
+                required: false
+                default: "--prefer-dist --no-scripts"
+                type: string
 
 permissions:
     contents: write
@@ -51,7 +57,7 @@ jobs:
                 name: Install Composer dependencies
                 uses: ramsey/composer-install@v3
                 with:
-                    composer-options: "--prefer-dist"
+                    composer-options: ${{ inputs.composer-options }}
                 env: # https://github.com/ramsey/composer-install?tab=readme-ov-file#fork-and-private-repositories
                     COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_AUTH }}"}}'