summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-10-16 09:18:51 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-10-16 09:20:21 -0700
commit8f33d801c21c01fb15abed6cabd4d4b289554de3 (patch)
treeb4d844f71c9bed563337bca4c98b5467a2f805e4
parent5b5643ae8b4ee1cbdbfecee3a9e994b7441dad95 (diff)
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.
-rw-r--r--.github/workflows/yjit-macos.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/yjit-macos.yml b/.github/workflows/yjit-macos.yml
index e936e02690..1f244fd9e4 100644
--- a/.github/workflows/yjit-macos.yml
+++ b/.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