From cd8e796a8574ed711efdae3c774e469d59ae1a22 Mon Sep 17 00:00:00 2001 From: Qi Date: Wed, 8 Jan 2025 16:06:14 +0800 Subject: [PATCH] chore(CI): remove `release-fail-bot.yml` --- .github/workflows/release-fail-bot.yml | 38 -------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/release-fail-bot.yml diff --git a/.github/workflows/release-fail-bot.yml b/.github/workflows/release-fail-bot.yml deleted file mode 100644 index 68d1c88637a2..000000000000 --- a/.github/workflows/release-fail-bot.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Notify Slack user on “Package & Release” failure - -on: - workflow_run: - workflows: ["Package & Release"] - types: - - completed - branches: - - master - - next/* - -jobs: - notify_failure: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} - steps: - - name: Generate Slack Payload - id: generate_payload - uses: actions/github-script@v4 - with: - script: | - const repo_name = "${{ github.event.workflow_run.repository.full_name }}"; - const run_id = ${{ github.event.workflow_run.id }}; - const run_url = `https://github.com/${repo_name}/actions/runs/${run_id}`; - const workflow_name = "${{ github.event.workflow_run.name }}" - const branch_name = "${{ github.event.workflow_run.head_branch }}" - const payload = { - text: `Workflow “${workflow_name}” failed in repo: “${repo_name}”, branch: "${branch_name}". Run URL: ${run_url}. Please check it.`, - icon_emoji: ":onfire:", - }; - console.log(`::set-output name=payload::${JSON.stringify(payload)}`); - - - name: "Send Slack Message" - uses: slackapi/slack-github-action@v1.23.0 - with: - payload: ${{ steps.generate_payload.outputs.payload }} - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GATEWAY_NOTIFICATIONS_WEBHOOK }}