Skip to content

Commit 2e5d120

Browse files
committed
Fix for multiline output
1 parent 71673f9 commit 2e5d120

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/drupal-update.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,12 @@ jobs:
119119

120120
- name: Update composer dependencies
121121
id: composer-update
122-
run: echo "commit_body=$(composer update --no-scripts 2>&1 | grep -Pzo 'Lock file operations.*(\n|.)*Writing lock file' | tail -n +2 | head -n -1)" >> $GITHUB_OUTPUT
122+
run: |
123+
{
124+
echo "commit_body<<EOF"
125+
composer update --no-scripts 2>&1 | grep -Pzo 'Lock file operations.*(\n|.)*Writing lock file' | tail -n +2 | head -n -1
126+
echo "EOF"
127+
} >> $GITHUB_OUTPUT
123128
124129
- name: Run Drupal updates
125130
run: vendor/bin/drush updb -y

0 commit comments

Comments
 (0)