diff --git a/.github/workflows/docker_macos.yml b/.github/workflows/docker_macos.yml index b7f03bc11a1..89e52455a8a 100644 --- a/.github/workflows/docker_macos.yml +++ b/.github/workflows/docker_macos.yml @@ -16,8 +16,9 @@ jobs: os: [macos-latest] runs-on: ${{ matrix.os }} steps: + - run: exit 1 - uses: actions/checkout@v3.2.0 - - uses: docker-practice/actions-setup-docker@1.0.11 + - uses: docker-practice/actions-setup-docker@master - uses: ruby/setup-ruby@v1.127.0 with: ruby-version: 2.7.1 @@ -29,3 +30,29 @@ jobs: ./scripts/connect_wallet.rb env: NETWORK: ${{ github.event.inputs.network || 'mainnet' }} + report: + needs: [build] + if: always() + runs-on: ubuntu-latest + steps: + - name: Slack Notification on failure + if: needs.build.result == 'failure' + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_ICON_EMOJI: ':poop:' + SLACK_USERNAME: 'GitHub Action' + SLACK_MESSAGE: | + *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + SLACK_COLOR: '#FF0000' + + - name: Slack Notification on success + if: needs.build.result == 'success' + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_ICON_EMOJI: ':rocket:' + SLACK_USERNAME: 'GitHub Action' + SLACK_MESSAGE: | + *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + SLACK_COLOR: '#00FF00'