Skip to content

Commit

Permalink
Merge pull request #1519 from luigieai/dev
Browse files Browse the repository at this point in the history
CI: slack notification if CI SUCCESS after FAILURE
  • Loading branch information
fallwith authored Oct 4, 2022
2 parents b20ee7d + d5e9ba5 commit e744158
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,23 @@ jobs:
channel: ruby-agent-notifications
status: FAILED
color: danger

notify_slack_success:
name: Notify slack success
needs: [unit_tests, multiverse, infinite_tracing, jruby_multiverse]
runs-on: ubuntu-22.04
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@v3
- uses: Mercymeilya/last-workflow-status@v0.3.2
id: last_status
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: voxmedia/github-action-slack-notify-build@v1
if: ${{ env.WORKFLOW_CONCLUSION == 'success' && steps.last_status.outputs.last_status == 'failure' }}
env:
SLACK_BOT_TOKEN: ${{ secrets.RUBY_GITHUB_ACTIONS_BOT_WEBHOOK }}
with:
channel: ruby-agent-notifications
status: SUCCESS
color: good

0 comments on commit e744158

Please sign in to comment.