Skip to content

Commit 9fc5d89

Browse files
committed
build: simplify by using new body-path option of GitHub action
1 parent 790f6f9 commit 9fc5d89

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/check_required_files.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)