Just skip the job if not on ruby/ruby

Using the same `runs-os` across all jobs in the same workflow makes it
more likely to pass in case one of these runners is experiencing an
outage.

macos-arm-oss is generally not available outside ruby/ruby, so it's
fair to skip it for forks.
This commit is contained in:
Takashi Kokubun 2023-10-16 09:18:51 -07:00
Родитель 5b5643ae8b
Коммит 8f33d801c2
1 изменённых файлов: 2 добавлений и 2 удалений

4
.github/workflows/yjit-macos.yml поставляемый
Просмотреть файл

@ -108,9 +108,9 @@ jobs:
if: ${{ failure() }}
result:
if: ${{ always() }}
if: ${{ always() && github.repository == 'ruby/ruby' }}
name: ${{ github.workflow }} result
runs-on: ubuntu-latest
runs-on: macos-arm-oss
needs: [make]
steps:
- run: exit 1