File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ This action supports such arguments (used in `with` keyword):
8989| database_collation | No | utf8_general_ci | Collation used for database |
9090| database_prefix | No | *icms_{run_id}_{run_attemnpt}* | Prefix for each ImpressCMS database table |
9191| database_port | No | 3306 | Port that is used for database connection |
92+ | addon_requirements_update | No | false | Set this to true to allow addon required other packages to be autoupdated on install |
9293
9394# # How to contribute?
9495
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ inputs:
6565 description : " Port that is used for database connection"
6666 default : " 3306"
6767 required : false
68+ addon_requirements_update :
69+ description : " Set this to true to allow addon required other packages to be autoupdated on install"
70+ default : " false"
71+ required : false
6872
6973runs :
7074 using : ' composite'
@@ -122,7 +126,12 @@ runs:
122126 if : steps.config.outputs.addon_installation_type == 'legacy'
123127
124128 - name : Installing addon with composer...
125- run : composer require ${{ steps.config.outputs.addon_name }}
129+ run : |
130+ if [ "${{ inputs.addon_requirements_update }}" == "true" ]; then
131+ composer require -W ${{ steps.config.outputs.addon_name }}
132+ else
133+ composer require ${{ steps.config.outputs.addon_name }}
134+ fi;
126135 shell : bash
127136 if : steps.config.outputs.addon_installation_type == 'composer'
128137 working-directory : ${{ steps.config.outputs.icms_path }}
You can’t perform that action at this time.
0 commit comments