Skip to content

Commit

Permalink
chore: extended test stats action
Browse files Browse the repository at this point in the history
  • Loading branch information
kirrg001 committed May 13, 2024
1 parent f43b620 commit 04cbfa2
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/schedule-test-stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,26 @@ jobs:
uses: actions/checkout@v2

- name: Execute stats
run: node bin/gather-test-stats.js
run: |
stats_output=$(node bin/gather-test-stats.js)
echo "::set-output name=stats::$stats_output"
- name: Send slack message
uses: slackapi/slack-github-action@v1.21.0
with:
channel-id: D02FE3BFEHG
payload: |
{
"text": "Node.js Test Stats",
"attachments": [{
"color": "good",
"fields": [
{
"title": "Result",
"value": "${{ steps.execute-stats.outputs.stats }}"
}
]
}]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 04cbfa2

Please sign in to comment.