Skip to content

Commit 32c5051

Browse files
committed
Fixup
1 parent 02b90c9 commit 32c5051

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/bench.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,13 @@ jobs:
3636
echo "$BENCHES"
3737
JSON=$(echo $BENCHES | jq -R -c 'split(" ")')
3838
39-
#echo "benches<<EOF" >> $GITHUB_OUTPUT
40-
#echo "$JSON" | tee -a $GITHUB_OUTPUT
41-
#echo "EOF" >> $GITHUB_OUTPUT
4239
echo "JSON:"
4340
echo "$JSON"
4441
4542
echo "benches=$JSON" | tee -a $GITHUB_OUTPUT
4643
4744
# Can't persist env vars between jobs, so we pass them as an output and set them in the next job
48-
echo "env-vars<<EOF" >> $GITHUB_OUTPUT
49-
echo "$(tail -n +2 comment.txt)" | tee -a $GITHUB_OUTPUT
50-
echo "EOF" >> $GITHUB_OUTPUT
45+
echo "env-vars=$(tail -n +2 comment.txt | tr -d '\r' | tr '\n' ' ')" | tee -a $GITHUB_OUTPUT
5146
5247
benchmark:
5348
needs: [ setup ]
@@ -60,10 +55,9 @@ jobs:
6055
- name: Set env vars
6156
run: |
6257
# Overrides default env vars with those specified in the `issue_comment` input if identically named
63-
# Trims newlines that may arise from `$GITHUB_OUTPUT`
6458
for var in ${{ needs.setup.outputs.env-vars }}
6559
do
66-
echo "$(echo $var | tr -d '\n')" | tee -a $GITHUB_ENV
60+
echo "$var" | tee -a $GITHUB_ENV
6761
done
6862
- uses: actions/checkout@v5
6963
# Get base branch of the PR

0 commit comments

Comments
 (0)