File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9797
9898 # Check whether the pull request contains files which are required to be present for all packages:
9999 - name : ' Check whether the pull request contains files which are required to be present for all packages'
100- id : check-required-files
101100 run : |
102101 # Define a list of required files:
103102 required_files=(
@@ -186,11 +185,8 @@ jobs:
186185 -- stdlib-bot"
187186 fi
188187
189- # Add the comment body to the workflow output after escaping to preserve newlines:
190- body="${body//'%'/'%25'}"
191- body="${body//$'\n'/'%0A'}"
192- body="${body//$'\r'/'%0D'}"
193- echo "comment-body=${body}" >> $GITHUB_OUTPUT
188+ # Write the comment body to a file:
189+ echo "${body}" > ./comment-body.txt
194190
195191 shell : bash
196192 timeout-minutes : 10
@@ -203,8 +199,8 @@ jobs:
203199 # Specify the issue or pull request number:
204200 issue-number : ${{ inputs.pull_request_number }}
205201
206- # Specify the comment body:
207- body : ${{ steps.check-required-files.outputs. comment-body }}
202+ # Specify the comment body path :
203+ body-path : ./ comment-body.txt
208204
209205 # GitHub token:
210206 token : ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments