Skip to content

Commit

Permalink
Work around not having access to matrix in job-if
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Oct 13, 2023
1 parent 55784da commit 7091765
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ jobs:
- ubuntu-latest
- windows-latest
- macos-latest
# Skip the ubuntu-latest build for the develop branch as the dedicated CD build_develop workflow handles that
if: github.event_name != 'push' || github.ref_name != 'develop' || matrix.image != 'ubuntu-latest'
isDevelop:
- ${{ github.event_name == 'push' && github.ref_name == 'develop' }}
# Skip the ubuntu-latest build for the develop branch as the dedicated CD build_develop workflow handles that
exclude:
- isDevelop: true
image: ubuntu-latest
runs-on: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 7091765

Please sign in to comment.