Skip to content

Commit ff2182a

Browse files
author
Arnaud Bailly
authored
Merge pull request #1245 from input-output-hk/fix-ci-comment-body
Use body-file when commenting transaction costs
2 parents 9805b33 + 491fdb1 commit ff2182a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci-nix.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,8 @@ jobs:
203203
id: comment-body
204204
run: |
205205
# Drop first 5 header lines and demote headlines one level
206-
body="$(cat <(cat artifact/transaction-cost.md | sed '1,5d;s/^#/##/') <(cat artifact/end-to-end-benchmarks.md | sed '1,5d;s/^#/##/') | grep -v '^:::')"
207-
body="${body//'%'/'%25'}"
208-
body="${body//$'\n'/'%0A'}"
209-
body="${body//$'\r'/'%0D'}"
210-
echo "body=$body" >> "$GITHUB_OUTPUT"
206+
cat <(cat artifact/transaction-cost.md | sed '1,5d;s/^#/##/') <(cat artifact/end-to-end-benchmarks.md | sed '1,5d;s/^#/##/') | grep -v '^:::' > comment-body.md
207+
211208
- name: 🔎 Find Comment
212209
uses: peter-evans/find-comment@v2
213210
id: find-comment
@@ -222,7 +219,7 @@ jobs:
222219
comment-id: ${{ steps.find-comment.outputs.comment-id }}
223220
edit-mode: replace
224221
issue-number: ${{ github.event.pull_request.number }}
225-
body: ${{ steps.comment-body.outputs.body }}
222+
body-file: comment-body.md
226223
reactions: rocket
227224

228225
build-specification:

0 commit comments

Comments
 (0)