Skip to content

chore: extended test stats action #2

chore: extended test stats action

chore: extended test stats action #2

name: scheduled-test-stats
on:
schedule:
- cron: '0 0 * * 1' # Every Monday at 06:00 AM UTC
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Execute stats
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

Check failure on line 22 in .github/workflows/schedule-test-stats.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/schedule-test-stats.yaml

Invalid workflow file

You have an error in your yaml syntax on line 22
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 }}