diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2025-10-03 22:41:32 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-10-03 22:41:32 -0700 |
| commit | ba48e6c9ca91653cf791e85cc1b245876cda18a4 (patch) | |
| tree | 259e02e7873dc9b45a5975de2ceb506789fe59a0 | |
| parent | 269ada2421818c0216064271fd22a497bf266552 (diff) | |
Propagate secrets to environment variables
| -rw-r--r-- | .github/workflows/check_misc.yml | 3 | ||||
| -rw-r--r-- | tool/notify-slack-commits.rb | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index 4b62a937cb..3275e4ccc3 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -34,6 +34,9 @@ jobs: env: GITHUB_OLD_SHA: ${{ github.event.before }} GITHUB_NEW_SHA: ${{ github.event.after }} + SLACK_WEBHOOK_URL_ALERTS: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_URL_COMMITS: ${{ secrets.SLACK_WEBHOOK_URL_COMMITS }} + SLACK_WEBHOOK_URL_RUBY_JP: ${{ secrets.SLACK_WEBHOOK_URL_RUBY_JP }} if: ${{ github.repository == 'ruby/ruby' && github.ref == 'refs/heads/master' && github.event_name == 'push' }} continue-on-error: true # The next auto-style should always run diff --git a/tool/notify-slack-commits.rb b/tool/notify-slack-commits.rb index 39a1ab7162..73e22b9a03 100644 --- a/tool/notify-slack-commits.rb +++ b/tool/notify-slack-commits.rb @@ -6,7 +6,7 @@ require "json" require "digest/md5" SLACK_WEBHOOK_URLS = [ - ENV.fetch("SLACK_WEBHOOK_URL").chomp, # ruby-lang#alerts + ENV.fetch("SLACK_WEBHOOK_URL_ALERTS").chomp, # ruby-lang#alerts ENV.fetch("SLACK_WEBHOOK_URL_COMMITS").chomp, # ruby-lang#commits ENV.fetch("SLACK_WEBHOOK_URL_RUBY_JP").chomp, # ruby-jp#ruby-commits ] |
