summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2025-10-09 00:35:52 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2025-10-09 00:36:07 -0700
commit8cd50a14702fb865b4ae9a0a3568efa34f34672e (patch)
treebd3c9015f92ff1230694d1c33adf5f19f2267974 /.github
parenta9adc2fcb4ea5b5292e3594cda120a1f3a94b143 (diff)
sync_default_gems.yml: Notify an extra channel
which git.ruby-lang.org used to also notify.
Diffstat (limited to '.github')
-rw-r--r--.github/actions/slack/action.yml6
-rw-r--r--.github/workflows/sync_default_gems.yml1
2 files changed, 7 insertions, 0 deletions
diff --git a/.github/actions/slack/action.yml b/.github/actions/slack/action.yml
index c785b35aa4..4a398da1d1 100644
--- a/.github/actions/slack/action.yml
+++ b/.github/actions/slack/action.yml
@@ -24,6 +24,11 @@ inputs:
description: >-
Target event to trigger notification. Notify only push by default.
+ extra_channel_id:
+ required: false
+ description: >-
+ Slack channel ID to notify besides #alerts and #alerts-emoji.
+
outputs: {} # Nothing?
runs:
@@ -39,6 +44,7 @@ runs:
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"commit": "${{ github.sha }}",
"branch": "${{ github.ref_name }}"
+ ${{ inputs.extra_channel_id && format(', "extra_channel_id": "{0}"', inputs.extra_channel_id) }}
}
env:
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }}
diff --git a/.github/workflows/sync_default_gems.yml b/.github/workflows/sync_default_gems.yml
index c652325393..7110b26d87 100644
--- a/.github/workflows/sync_default_gems.yml
+++ b/.github/workflows/sync_default_gems.yml
@@ -63,4 +63,5 @@ jobs:
with:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
event_name: workflow_dispatch
+ extra_channel_id: C05FPKAU743 # alerts-sync
if: ${{ failure() }}