We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20b3006 commit b73145aCopy full SHA for b73145a
1 file changed
.github/workflows/drupal-update.yml
@@ -149,10 +149,15 @@ jobs:
149
run: |
150
{
151
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'
+ 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'
153
COMPOSERSTATUS=${PIPESTATUS[0]}
154
echo "EOF"
155
- exit $COMPOSERSTATUS
+ if [ $COMPOSERSTATUS -ne 0 ]; then
156
+ cat composer_output.txt
157
+ rm composer_output.txt
158
+ exit $COMPOSERSTATUS;
159
+ fi
160
161
} >> $GITHUB_OUTPUT
162
163
- name: "Run composer normalize"
0 commit comments