Skip to content

Commit df9d9d8

Browse files
committed
Add option to skip existing config
1 parent b90c0c2 commit df9d9d8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/drupal-update.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ on:
3636
description: The repman host for composer, if applicable
3737
required: false
3838
type: string
39+
use-existing-config:
40+
description: >
41+
Drupal install profiles with a hook_install cannot be installed with
42+
the --existing-config flag. You can set this parameter to disable it,
43+
defaults to true (enabled).
44+
required: false
45+
type: boolean
46+
default: true
3947

4048
secrets:
4149
repository_token:
@@ -119,7 +127,7 @@ jobs:
119127
run: composer install --no-scripts
120128

121129
- name: Install Drupal
122-
run: vendor/bin/robo digipolis:install-drupal8 ${{ inputs.drupal-install-profile }} --force --existing-config --config-import
130+
run: vendor/bin/robo digipolis:install-drupal8 ${{ inputs.drupal-install-profile }} --force ${{ inputs.use-existing-config && '--existing-config' || '' }} --config-import
123131

124132
- name: Execute config import
125133
run: vendor/bin/drush cim -y

0 commit comments

Comments
 (0)