Skip to content

Commit

Permalink
test(cat-voices): add allure report to slack (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
emiride authored Oct 10, 2024
1 parent 008c637 commit ff6859e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
schedule:
- cron: '0 0 * * *' # Runs every day at 00:00
workflow_dispatch:
branches:
- main


permissions:
id-token: write
Expand Down Expand Up @@ -118,4 +117,15 @@ jobs:
with:
repository: gh-pages-dir
branch: gh-pages
pull_args: --rebase -X ours
pull_args: --rebase -X ours

- name: Send Slack notification
if: ${{ always() && steps.allure.outputs.report_url }}
uses: slackapi/[email protected]
with:
payload: |
{
"text": ":rocket: *Test Report*\n<${{ steps.allure.outputs.report_url }}|Click here to view the Allure report>\n*Passed:* ${{ steps.allure.outputs.test_result_passed }}/ ${{ steps.allure.outputs.test_result_total }}\n*Failed:* ${{ steps.allure.outputs.test_result_failed }}/ ${{ steps.allure.outputs.test_result_total }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit ff6859e

Please sign in to comment.