From 5ca9c8ff2586cbaf15b48cdd0493c2c00acf5056 Mon Sep 17 00:00:00 2001 From: Sahin Yort Date: Mon, 25 Sep 2023 13:13:49 -0700 Subject: [PATCH] fix: macos sed (#550) --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 54373d7..a5010d5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -60,7 +60,7 @@ jobs: run: echo "os=macos-latest" >> $GITHUB_OUTPUT # Only run on main branch (or PR branches that contain 'macos') to minimize macOS minutes (billed at 10X) # https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#included-storage-and-minutes - if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'macos') }} + if: ${{ github.ref == 'refs/heads/main' || contains(github.head_ref, 'macos') }} - id: windows run: echo "os=windows-latest" >> $GITHUB_OUTPUT # Only run on main branch (or PR branches that contain 'windows') to minimize Windows minutes (billed at 2X) @@ -175,7 +175,7 @@ jobs: - name: Make dev dependencies available (bzlmod) if: matrix.bzlmodEnabled - run: sed -i 's/dev_dependency = True/dev_dependency = False/g' MODULE.bazel + run: sed -i${{ matrix.os == 'macos-latest' && ' ""' || '' }} 's/dev_dependency = True/dev_dependency = False/g' MODULE.bazel - name: Write rbe credentials if: ${{ matrix.config == 'rbe' }}