From 9a4395664a1de36133e087072aa83f8738a5b69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:37:38 +0000 Subject: [PATCH] ci: Post issues for miri check fails instead of messaging slack (#1662) Requires the new `create-issue` workflow to be merged (https://github.com/CQCL/hugrverse-actions/pull/24). --- .github/workflows/unsoundness.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/unsoundness.yml b/.github/workflows/unsoundness.yml index caf17115f..0c2790f6f 100644 --- a/.github/workflows/unsoundness.yml +++ b/.github/workflows/unsoundness.yml @@ -40,19 +40,17 @@ jobs: run: cargo miri test - notify-slack: - uses: CQCL/hugrverse-actions/.github/workflows/slack-notifier.yml@main + create-issue: + uses: CQCL/hugrverse-actions/.github/workflows/create-issue.yml@main needs: miri if: always() && needs.miri.result == 'failure' && github.event_name == 'push' - with: - channel-id: 'C04SHCL4FKP' - slack-message: | - 💥 The unsoundness check for `CQCL/hugr` failed. - . - # Rate-limit the message to once per day - timeout-minutes: 1440 - # A repository variable used to store the last message timestamp. - timeout-variable: "UNSOUNDNESS_MSG_SENT" secrets: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} GITHUB_PAT: ${{ secrets.HUGRBOT_PAT }} + with: + title: "💥 Unsoundness check failed on main" + body: | + The unsoundness check for `CQCL/hugr` failed. + + [https://github.com/CQCL/hugr/actions/runs/${{ github.run_id }}](Please investigate). + unique-label: "unsoundness-checks" + other-labels: "bug"