Notify coverage changes #250
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify coverage changes | |
# Daily notification for coverage changes in `main`. | |
# | |
# PR coverage diffs are computed directly in the `Continuous Integration` workflow. | |
on: | |
schedule: | |
# 04:00 every Monday | |
- cron: '0 4 * * 1' | |
workflow_dispatch: {} | |
jobs: | |
coverage-trend: | |
uses: CQCL/hugrverse-actions/.github/workflows/coverage-trend.yml@main | |
secrets: | |
CODECOV_GET_TOKEN: ${{ secrets.CODECOV_GET_TOKEN }} | |
notify-slack: | |
needs: coverage-trend | |
runs-on: ubuntu-latest | |
if: needs.coverage-trend.outputs.should_notify == 'true' | |
steps: | |
- name: Send notification | |
uses: slackapi/[email protected] | |
with: | |
channel-id: 'C04SHCL4FKP' | |
slack-message: ${{ needs.coverage-trend.outputs.msg }} | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |