File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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 ]
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
You can’t perform that action at this time.
0 commit comments