From 48e646fd96a834709fdfdddf08b1ac7dd188d50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 28 Jun 2023 23:17:54 +0900 Subject: refactor extract ${{ ghithub }} expressions Use composite action to reduce copy & paste. --- .github/workflows/windows.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to '.github/workflows/windows.yml') 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' }} -- cgit v1.2.3