fix: macos sed (#550)

This commit is contained in:
Sahin Yort 2023-09-25 13:13:49 -07:00 committed by GitHub
parent 7908e53f43
commit 5ca9c8ff25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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' }}