summaryrefslogtreecommitdiff
path: root/.github/workflows/check_misc.yml
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2023-06-28 23:17:54 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2023-06-29 16:58:11 +0900
commit48e646fd96a834709fdfdddf08b1ac7dd188d50f (patch)
tree60a9eee1e75657040e5b8d473ef0b064a6dcb4bc /.github/workflows/check_misc.yml
parent26b69fd4071b88c24654b19109beeb2ee416c0fa (diff)
refactor extract ${{ ghithub }} expressions
Use composite action to reduce copy & paste.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7994
Diffstat (limited to '.github/workflows/check_misc.yml')
-rw-r--r--.github/workflows/check_misc.yml11
1 files changed, 1 insertions, 10 deletions
diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml
index 0a843643c4..5f83ecfbbb 100644
--- a/.github/workflows/check_misc.yml
+++ b/.github/workflows/check_misc.yml
@@ -97,16 +97,7 @@ jobs:
GIT_COMMITTER_NAME: git
if: ${{ github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull') && steps.diff.outcome == 'failure' }}
- - uses: ruby/action-slack@0bd85c72233cdbb6a0fe01d37aaeff1d21b5fce1 # v3.2.1
+ - uses: ./.github/actions/slack
with:
- payload: |
- {
- "ci": "GitHub Actions",
- "env": "${{ github.workflow }}",
- "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
- "commit": "${{ github.sha }}",
- "branch": "${{ github.ref_name }}"
- }
- env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() && github.event_name == 'push' }}