Skip to content

Commit b73145a

Browse files
authored
Update drupal-update.yml
Output the composer output so we can see what went wrong during composer update.
1 parent 20b3006 commit b73145a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/drupal-update.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,15 @@ jobs:
149149
run: |
150150
{
151151
echo "commit_body<<EOF"
152-
composer update --no-scripts 2>&1 | grep -Pzo 'Lock file operations.*(\n|.)*Writing lock file' | tail -n +2 | head -n -1 | sed -r 's/ +?- ([^ ]+) //g'
152+
composer update --no-scripts 2>&1 | tee composer_output.txt | grep -Pzo 'Lock file operations.*(\n|.)*Writing lock file' | tail -n +2 | head -n -1 | sed -r 's/ +?- ([^ ]+) //g'
153153
COMPOSERSTATUS=${PIPESTATUS[0]}
154154
echo "EOF"
155-
exit $COMPOSERSTATUS
155+
if [ $COMPOSERSTATUS -ne 0 ]; then
156+
cat composer_output.txt
157+
rm composer_output.txt
158+
exit $COMPOSERSTATUS;
159+
fi
160+
rm composer_output.txt
156161
} >> $GITHUB_OUTPUT
157162
158163
- name: "Run composer normalize"

0 commit comments

Comments
 (0)