Skip to content

Commit

Permalink
Use GitHub multiline output syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jdangerx committed Nov 30, 2023
1 parent 68d3aa1 commit 518403a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/run-archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ jobs:
- name: Munge summaries together
id: all_summaries
run: |
./scripts/make_slack_notification_message.py --summary-files *_run_summary.json | tee -a "$GITHUB_OUTPUT"
{
echo 'SLACK_PAYLOAD<<EOF'
./scripts/make_slack_notification_message.py --summary-files *_run_summary.json
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Inform the Codemonkeys
uses: slackapi/slack-github-action@v1.24.0
with:
Expand Down
2 changes: 1 addition & 1 deletion scripts/make_slack_notification_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def header_block(text):

print(
json.dumps(
{"attachments": [{"blocks": changed_blocks + unchanged_blocks}]},
{"attachments": [{"blocks": changed_blocks + unchanged_blocks}]}, indent=2
)
)

Expand Down

0 comments on commit 518403a

Please sign in to comment.