Skip to content

Commit

Permalink
update yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueline-57b committed Jul 14, 2024
1 parent 6e658cd commit 8da2b54
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/run-full-regression-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
- name: Get test report name
id: get-report-name
run: |
REPORT_NAME=$(ls ./test-reports/*.html)
REPORT_PATH=$(ls ./test-results/*.html)
REPORT_NAME=$(basename "$REPORT_PATH")
echo "Report name: $REPORT_NAME"
echo "::set-output name=report_name::$REPORT_NAME"
Expand All @@ -78,3 +79,33 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./test-reports
publish_branch: gh-pages

- name: Push Slack Notification
uses: slackapi/[email protected]
with:
channel-id: "C05HPKKNDCN"
payload: |
{
"text": "${{ github.repository }}: API Integration Tests have been completed. Check the results at https://jacqueline-57b.github.io/${{ github.repository }}/${{ steps.get-report-name.outputs.report_name }}",
"blocks": [
{ "type": "divider" },
{
"type": "image",
"title": {
"type": "plain_text",
"text": "SDK Regression Test Results"
},
"image_url": "http://www.quickmeme.com/img/b9/b9848df257b95cd39585368475a4b4e4a3a8c774f7390226daecb79b912087ad.jpg",
"alt_text": "SDK Regression Test Results"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text":"${{ github.repository }}: SDK Regression Test Result have been completed. \nCheck the results at https://jacqueline-57b.github.io/${{ github.repository }}/${{ steps.get-report-name.outputs.report_name }}"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 8da2b54

Please sign in to comment.