Skip to content

Commit

Permalink
Slack notification cannot send from other than ruby/* [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Sep 21, 2023
1 parent 7c98d52 commit a49d17a
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/actions/slack/action.yml
Expand Up @@ -36,3 +36,4 @@ runs:
}
env:
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }}
if: ${{github.event_name == 'push' && startsWith(github.repository, 'ruby/')}}
2 changes: 1 addition & 1 deletion .github/workflows/annocheck.yml
Expand Up @@ -116,7 +116,7 @@ jobs:
- uses: ./.github/actions/slack
with:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/baseruby.yml
Expand Up @@ -78,4 +78,4 @@ jobs:
with:
label: ${{ matrix.ruby }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}
2 changes: 1 addition & 1 deletion .github/workflows/bundled_gems.yml
Expand Up @@ -116,4 +116,4 @@ jobs:
- uses: ./.github/actions/slack
with:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}
2 changes: 1 addition & 1 deletion .github/workflows/check_dependencies.yml
Expand Up @@ -70,4 +70,4 @@ jobs:
with:
label: ${{ matrix.os }} / Dependencies need to update
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}
2 changes: 1 addition & 1 deletion .github/workflows/check_misc.yml
Expand Up @@ -103,4 +103,4 @@ jobs:
- uses: ./.github/actions/slack
with:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}
2 changes: 1 addition & 1 deletion .github/workflows/compilers.yml
Expand Up @@ -286,7 +286,7 @@ jobs:
with:
label: ${{ matrix.entry.name }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Expand Up @@ -103,7 +103,7 @@ jobs:
with:
label: ${{ matrix.test_task }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mingw.yml
Expand Up @@ -153,7 +153,7 @@ jobs:
with:
label: ${{ matrix.msystem }} / ${{ matrix.test_task }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rjit-bindgen.yml
Expand Up @@ -81,7 +81,7 @@ jobs:
- uses: ./.github/actions/slack
with:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rjit.yml
Expand Up @@ -110,7 +110,7 @@ jobs:
with:
label: ${{ matrix.run_opts }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spec_guards.yml
Expand Up @@ -63,4 +63,4 @@ jobs:
with:
label: ${{ matrix.ruby }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Expand Up @@ -123,7 +123,7 @@ jobs:
with:
label: ${{ matrix.test_task }} ${{ matrix.configure }}${{ matrix.arch }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wasm.yml
Expand Up @@ -132,7 +132,7 @@ jobs:
with:
label: ${{ matrix.entry.name }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Expand Up @@ -182,7 +182,7 @@ jobs:
with:
label: VS${{ matrix.vs }} / ${{ matrix.test_task || 'check' }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yjit-ubuntu.yml
Expand Up @@ -179,7 +179,7 @@ jobs:
with:
label: ${{ matrix.test_task }} ${{ matrix.configure }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}
if: ${{ failure() }}

defaults:
run:
Expand Down

0 comments on commit a49d17a

Please sign in to comment.