From 223a79e6830ca9c3619258ac00eebffb7754a0a1 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Fri, 12 May 2023 15:40:10 +0900 Subject: Don't call action-slack if SLACK_WEBHOOK_URL is not set For a PR, SLACK_WEBHOOK_URL is not set --- .github/workflows/annocheck.yml | 2 +- .github/workflows/baseruby.yml | 2 +- .github/workflows/bundled_gems.yml | 2 +- .github/workflows/check_dependencies.yml | 2 +- .github/workflows/check_misc.yml | 2 +- .github/workflows/compilers.yml | 2 +- .github/workflows/macos.yml | 2 +- .github/workflows/mingw.yml | 2 +- .github/workflows/rjit-bindgen.yml | 2 +- .github/workflows/rjit.yml | 2 +- .github/workflows/spec_guards.yml | 2 +- .github/workflows/ubuntu.yml | 2 +- .github/workflows/wasm.yml | 2 +- .github/workflows/windows.yml | 2 +- .github/workflows/yjit-ubuntu.yml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) (limited to '.github') diff --git a/.github/workflows/annocheck.yml b/.github/workflows/annocheck.yml index 7c26f9276d..0e531444d9 100644 --- a/.github/workflows/annocheck.yml +++ b/.github/workflows/annocheck.yml @@ -154,7 +154,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/baseruby.yml b/.github/workflows/baseruby.yml index cc8727bc4e..043fa6b238 100644 --- a/.github/workflows/baseruby.yml +++ b/.github/workflows/baseruby.yml @@ -75,4 +75,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} diff --git a/.github/workflows/bundled_gems.yml b/.github/workflows/bundled_gems.yml index 3396e562c0..0537d26cff 100644 --- a/.github/workflows/bundled_gems.yml +++ b/.github/workflows/bundled_gems.yml @@ -135,4 +135,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml index cbd88a3e0d..5f429f6307 100644 --- a/.github/workflows/check_dependencies.yml +++ b/.github/workflows/check_dependencies.yml @@ -76,4 +76,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index 403fa26d1f..3bb26ac9af 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -109,4 +109,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml index da04abbbb3..445af66560 100644 --- a/.github/workflows/compilers.yml +++ b/.github/workflows/compilers.yml @@ -285,7 +285,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4228e0d4d5..192ef6e28c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -108,7 +108,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 8e0a006d3c..fa4c4ec207 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -171,7 +171,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/rjit-bindgen.yml b/.github/workflows/rjit-bindgen.yml index dafbc367f4..47ac3a0f7d 100644 --- a/.github/workflows/rjit-bindgen.yml +++ b/.github/workflows/rjit-bindgen.yml @@ -97,7 +97,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/rjit.yml b/.github/workflows/rjit.yml index dce7b78631..298b47a50e 100644 --- a/.github/workflows/rjit.yml +++ b/.github/workflows/rjit.yml @@ -127,7 +127,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/spec_guards.yml b/.github/workflows/spec_guards.yml index 50072412cf..4457ffa546 100644 --- a/.github/workflows/spec_guards.yml +++ b/.github/workflows/spec_guards.yml @@ -58,4 +58,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 3deabea9e9..4b5dd97b4c 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -137,7 +137,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 3a7bd5e8be..2ee6b2937f 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -127,7 +127,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 311db28744..b1346d6ec3 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -149,7 +149,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml index 710171723a..07b90145c7 100644 --- a/.github/workflows/yjit-ubuntu.yml +++ b/.github/workflows/yjit-ubuntu.yml @@ -170,7 +170,7 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot - if: ${{ failure() && github.event_name == 'push' }} + if: ${{ failure() && github.event_name == 'push' && secrets.SIMPLER_ALERTS_URL }} defaults: run: -- cgit v1.2.1