Skip to content

Commit

Permalink
Fix validating clean config on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
becw committed Nov 16, 2021
1 parent a2a8acd commit 5f03ba3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions targets/drupal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
<!-- Assembling this property at run time. -->
<property name="drupal.validate_clean_config.dir" value="${build.dir}/${drupal.root}/${drupal.site.config_sync_directory}" />

<!-- Use git to list local (not yet committed) changes to the config directory. -->
<exec command="git status --porcelain ${drupal.validate_clean_config.dir}" outputProperty="modified_files" />
<!-- Use git to list local (not yet committed) changes to the config
directory. Suppress errors so that this command will run even if
the project isn't a git directory (e.g. on the-build's CircleCI
test!) -->
<exec command="git status --porcelain ${drupal.validate_clean_config.dir} 2>/dev/null" outputProperty="modified_files" />

<if>
<and>
Expand Down

0 comments on commit 5f03ba3

Please sign in to comment.