From edd18c28fb0e6221e83df92c391fa169b6292726 Mon Sep 17 00:00:00 2001 From: Ulises Santana Date: Mon, 18 Dec 2023 09:21:56 +0000 Subject: [PATCH] =?UTF-8?q?ci(slack):=20=F0=9F=91=B7=20remove=20slack=20re?= =?UTF-8?q?lated=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/failureNotifications.yml | 43 ------------------- .github/workflows/notify-slack-on-pr-open.yml | 23 ---------- 2 files changed, 66 deletions(-) delete mode 100644 .github/workflows/failureNotifications.yml delete mode 100644 .github/workflows/notify-slack-on-pr-open.yml diff --git a/.github/workflows/failureNotifications.yml b/.github/workflows/failureNotifications.yml deleted file mode 100644 index 9243031..0000000 --- a/.github/workflows/failureNotifications.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: failureNotifications - -on: - workflow_run: - workflows: - - version, tag and github release - - publish - types: - - completed - -jobs: - failure-notify: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} - steps: - - name: Announce Failure - id: slack - uses: slackapi/slack-github-action@v1.24.0 - env: - # for non-CLI-team-owned plugins, you can send this anywhere you like - SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - with: - payload: | - { - "text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}", - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":bh-alert: ${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }} :bh-alert:" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Repo: ${{ github.event.workflow_run.repository.html_url }}\nWorkflow name: `${{ github.event.workflow_run.name }}`\nJob url: ${{ github.event.workflow_run.html_url }}" - } - } - ] - } diff --git a/.github/workflows/notify-slack-on-pr-open.yml b/.github/workflows/notify-slack-on-pr-open.yml deleted file mode 100644 index 13b5c9e..0000000 --- a/.github/workflows/notify-slack-on-pr-open.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pull Request Slack Notification - -on: - pull_request: - types: [opened, reopened] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Notify Slack on PR open - env: - WEBHOOK_URL : ${{ secrets.CLI_TEAM_SLACK_WEBHOOK_URL }} - PULL_REQUEST_AUTHOR_ICON_URL : ${{ github.event.pull_request.user.avatar_url }} - PULL_REQUEST_AUTHOR_NAME : ${{ github.event.pull_request.user.login }} - PULL_REQUEST_AUTHOR_PROFILE_URL: ${{ github.event.pull_request.user.html_url }} - PULL_REQUEST_BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }} - PULL_REQUEST_COMPARE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }} - PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }} - PULL_REQUEST_REPO: ${{ github.event.pull_request.head.repo.name }} - PULL_REQUEST_TITLE : ${{ github.event.pull_request.title }} - PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }} - uses: salesforcecli/github-workflows/.github/actions/prNotification@main