Fix missing macOS version in Slack notifications

matrix.os is not set for some jobs.
This commit is contained in:
Takashi Kokubun 2024-06-28 10:38:05 -04:00
parent 98c923ff4b
commit 01f0dcd336

View File

@ -39,7 +39,7 @@ jobs:
env: env:
GITPULLOPTIONS: --no-tags origin ${{ github.ref }} GITPULLOPTIONS: --no-tags origin ${{ github.ref }}
runs-on: ${{ matrix.os || (github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14')}} runs-on: ${{ matrix.os || (github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14') }}
if: >- if: >-
${{!(false ${{!(false
@ -94,7 +94,7 @@ jobs:
- name: Set up Launchable - name: Set up Launchable
uses: ./.github/actions/launchable/setup uses: ./.github/actions/launchable/setup
with: with:
os: ${{ matrix.os || (github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14')}} os: ${{ matrix.os || (github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14') }}
test-opts: ${{ matrix.test_opts }} test-opts: ${{ matrix.test_opts }}
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }} launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
builddir: build builddir: build
@ -129,7 +129,7 @@ jobs:
- uses: ./.github/actions/slack - uses: ./.github/actions/slack
with: with:
label: ${{ matrix.os }} / ${{ matrix.test_task }} label: ${{ matrix.os || (github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14') }} / ${{ matrix.test_task }}
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() }} if: ${{ failure() }}