Skip to content

Commit

Permalink
ISSUE-318: update how $DESCRIPTION is generated
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-aveiga committed May 28, 2024
1 parent 9680ea9 commit 8b4ff69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ tasks:
DESCRIPTION=$(cat /tmp/drainpipe-composer-lock-diff-pr | jq -r '.body')
if [ "$(cat /tmp/drainpipe-composer-lock-diff)" != "" ]; then
DIFF=$(cat /tmp/drainpipe-composer-lock-diff)
DIFF="$(jq -n --arg diff "$DIFF" '$diff')"
DESCRIPTION="$(jq -n --arg description "$DESCRIPTION" '$description')"
DESCRIPTION="$DESCRIPTION"'\n<!--Composer Lock Diff-->\r\n## Composer Lock Diff\r\n'"$DIFF<!--/Composer Lock Diff-->"
DESCRIPTION=$DESCRIPTION'\n<!--Composer Lock Diff-->\r\n## Composer Lock Diff\r\n'$DIFF'<!--/Composer Lock Diff-->'
fi
echo "{\"body\": \"$(echo "$DESCRIPTION")\"}" > {{ .json_file }}

0 comments on commit 8b4ff69

Please sign in to comment.