-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(l1): fix hive report workflow (#1262)
**Motivation** The step that builds the report and saves it to an output so the report is not being published.
- Loading branch information
Showing
2 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,25 +51,13 @@ jobs: | |
id: report | ||
run: | | ||
cargo run -p hive_report > results.md | ||
echo "content=$(cat results.md)" >> $GITHUB_OUTPUT | ||
- name: Post results in summary | ||
run: | | ||
echo "# Hive coverage report\n\n" >> $GITHUB_STEP_SUMMARY | ||
$(cat results.md) >> $GITHUB_STEP_SUMMARY | ||
echo "# Hive coverage report" >> $GITHUB_STEP_SUMMARY | ||
cat results.md >> $GITHUB_STEP_SUMMARY | ||
- name: Post results to slack | ||
uses: slackapi/[email protected] | ||
with: | ||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
blocks: | ||
- type: "header" | ||
text: | ||
type: "plain_text" | ||
text: Hive coverage report | ||
- type: "section" | ||
text: | ||
type: "mrkdwn" | ||
text: ${{steps.report.outputs.content}} | ||
env: | ||
url: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
run: sh publish.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
curl -X POST $url \ | ||
-H 'Content-Type: application/json; charset=utf-8' \ | ||
--data @- <<EOF | ||
$(jq -n --arg text "$(cat results.md)" '{ | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "Daily report" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": $text | ||
} | ||
} | ||
] | ||
}') | ||
EOF |