Notify coverage changes #252
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: | |
method: chat.postMessage | |
token: ${{ secrets.SLACK_BOT_TOKEN }} | |
payload: | | |
channel: 'C04SHCL4FKP' | |
text: ${{ needs.coverage-trend.outputs.msg }} |