Skip to content

Commit b31d07b

Browse files
authored
Merge pull request #851 from secureCodeBox/bugfix/fix-scb-pr-body-bug
Fixes misformated SCB-Bot PR body
2 parents 5278599 + ac340a5 commit b31d07b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/scb-bot.yaml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ jobs:
8080
if: ${{ env.release != env.local && env.release != null }}
8181
# Fetches changelog and filters out any issue references
8282
run: |
83-
changelog=$(curl -sL ${{env.versionApi}} | jq -r ".body" | sed -e 's/#[0-9]\+//g')
84-
echo $changelog
85-
echo releaseChangelog=$changelog >> $GITHUB_ENV
83+
changelog=$(curl -sL ${{env.versionApi}} | jq -r ".body")
84+
echo releaseChangelog="$changelog" >> $GITHUB_ENV
8685
8786
- name: Upgrade Scanner Helm Chart
8887
if: ${{ env.release != env.local && env.prExists == 0 && env.release != null}}
@@ -139,9 +138,11 @@ jobs:
139138
author: secureCodeBoxBot <securecodebox@iteratec.com>
140139
title: ${{ env.pullRequest }}
141140
body: |
142-
"This is an automated Pull Request by the SCB-Bot. It upgrades ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}"
141+
This is an automated Pull Request by the SCB-Bot. It upgrades ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}
143142
## Release changes :
143+
```
144144
${{env.releaseChangelog}}
145+
```
145146
branch: "dependencies/upgrading-${{ matrix.scanner }}-to-${{env.release}}"
146147
labels: dependencies,scanner
147148
commit-message: "Upgrading ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}"

0 commit comments

Comments
 (0)