Skip to content

chore: changed cron expression in schedule-test-stats.yaml #13

chore: changed cron expression in schedule-test-stats.yaml

chore: changed cron expression in schedule-test-stats.yaml #13

name: scheduled-test-stats

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

View workflow run for this annotation

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

Invalid workflow file

invalid `cron` attribute "0 7 ? * MON#2"
on:
schedule:
- cron: '0 7 ? * MON#2' # Every Second Monday at 07: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_cases=$(node bin/gather-test-stats.js)
echo $stats_cases
echo "instana_stats_test_cases=$stats_cases" >> $GITHUB_ENV
- name: Send slack message
uses: slackapi/slack-github-action@v1.26.0
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID_BREWERY_NODE }}
payload: |
{
"text": "Team Node.js Test Stats",
"attachments": [{
"color": "good",
"fields": [
{
"title": "Number of Test Cases:",
"value": "${{ env.instana_stats_test_cases }}"
}
]
}]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}