Skip to content

Daily Reports

Daily Reports #346

name: Daily Reports
on:
schedule:
# Every day at UTC 03:00
- cron: "0 3 * * 1,2,3,4,5"
workflow_dispatch:
jobs:
hive-report-creation:
name: Run Hive tests
uses: ./.github/workflows/common_hive_reports.yaml
with:
job_type: daily
post-daily-report:
name: Post report to slack
needs: [hive-report-creation]
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Download hive results
uses: actions/download-artifact@v4
with:
name: ${{ needs.hive-report-creation.outputs.report_artifact_name }}
- name: Post Hive results to Slack
env:
SLACK_WEBHOOKS: >
${{ github.event_name == 'workflow_dispatch'
&& secrets.TEST_CHANNEL_SLACK
|| format(
'{0} {1}',
secrets.ETHREX_L1_SLACK_WEBHOOK,
secrets.ETHREX_L2_SLACK_WEBHOOK
)
}}
run: |
for webhook in $SLACK_WEBHOOKS; do
sh .github/scripts/publish_hive.sh "$webhook" results.md
done
echo "Sending Results" >> $GITHUB_STEP_SUMMARY