From 7691d17c785e62e0d00ebb6fc7f2dbe24494d83a Mon Sep 17 00:00:00 2001 From: voluntas Date: Tue, 16 Jul 2024 11:51:36 +0900 Subject: [PATCH] =?UTF-8?q?macos=20=E3=81=A7=E9=80=9A=E7=9F=A5=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=AA=E3=81=84=E3=81=AE=E3=81=A7=E5=88=86=E9=9B=A2?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 44 ++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 613f4e55..3962ef12 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,24 +53,32 @@ jobs: - name: Check uncommitted unformatted code run: | ./lint-format.sh - - name: Slack Notification - if: success() - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_CHANNEL: sora-ios-sdk - SLACK_COLOR: good - SLACK_TITLE: SUCCEEDED - SLACK_ICON_EMOJI: ":star-struck:" - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - - name: Slack Notification - if: failure() - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_CHANNEL: sora-ios-sdk - SLACK_COLOR: danger - SLACK_TITLE: "FAILED" - SLACK_ICON_EMOJI: ":japanese_ogre:" - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + slack_notify_succeeded: + needs: [build] + runs-on: ubuntu-latest + if: success() + steps: + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: sora-ios-sdk + SLACK_COLOR: good + SLACK_TITLE: SUCCEEDED + SLACK_ICON_EMOJI: ":star-struck:" + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + slack_notify_failed: + needs: [build] + runs-on: ubuntu-latest + if: failure() + steps: + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: sora-ios-sdk + SLACK_COLOR: danger + SLACK_TITLE: "FAILED" + SLACK_ICON_EMOJI: ":japanese_ogre:" + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} release: if: contains(github.ref, 'tags/v') needs: [build]