Skip to content

Commit cd6fa5b

Browse files
committed
ci: fix the thing
1 parent fa05641 commit cd6fa5b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/validate_modified_targets.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,26 @@ jobs:
7373
id: prepare-summary
7474
run: |
7575
$(poetry env activate)
76+
python devel/summarize_site_validation.py validation_results.xml
7677
summary=$(
77-
python devel/summarize_site_validation.py validation_results.xml > summary.md || echo "Failed to generate summary of test results"
78+
python devel/summarize_site_validation.py validation_results.xml || echo "Failed to generate summary of test results"
7879
)
7980
deactivate
80-
echo "summary<<EOF" >> $GITHUB_OUTPUT
81-
echo "$summary" >> $GITHUB_OUTPUT
82-
echo "EOF" >> $GITHUB_OUTPUT
81+
echo "$summary" > validation_summary.md
82+
cat validation_summary.md
8383
8484
- name: Announce validation results
8585
if: steps.discover-modified.outputs.changed_targets != ''
8686
uses: actions/github-script@v8
8787
with:
8888
script: |
89+
const fs = require('fs');
90+
const body = fs.readFileSync('validation_summary.md', 'utf8');
8991
github.rest.issues.createComment({
9092
issue_number: context.payload.pull_request.number,
9193
owner: context.repo.owner,
9294
repo: context.repo.repo,
93-
body: `${{ steps.prepare-summary.outputs.summary }}`
95+
body: body,
9496
});
9597
9698
- name: This step shows as ran when no modifications are found

0 commit comments

Comments
 (0)