summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.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/windows.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/windows.yml')
-rw-r--r--.github/workflows/windows.yml12
1 files changed, 2 insertions, 10 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 687dee06f4..f1926baf19 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -140,17 +140,9 @@ jobs:
env:
RUBY_TESTOPTS: -j${{env.TEST_JOBS}} --job-status=normal
timeout-minutes: 60
- - uses: ruby/action-slack@0bd85c72233cdbb6a0fe01d37aaeff1d21b5fce1 # v3.2.1
+ - uses: ./.github/actions/slack
with:
- payload: |
- {
- "ci": "GitHub Actions",
- "env": "VS${{ matrix.vs }} / ${{ matrix.test_task || 'check' }}",
- "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
- "commit": "${{ github.sha }}",
- "branch": "${{ github.ref_name }}"
- }
- env:
+ 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' }}