Slack notification cannot send from other than ruby/* [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2023-09-21 12:17:01 +09:00
parent 7c98d520f4
commit a49d17a080
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
16 changed files with 16 additions and 15 deletions

View File

@ -36,3 +36,4 @@ runs:
}
env:
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }}
if: ${{github.event_name == 'push' && startsWith(github.repository, 'ruby/')}}

View File

@ -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:

View File

@ -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() }}

View File

@ -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() }}

View File

@ -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() }}

View File

@ -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() }}

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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() }}

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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: