From b1d782956575196659ee288fa045998a49f23c4f Mon Sep 17 00:00:00 2001 From: Duncan Dean Date: Thu, 4 Jul 2024 15:48:01 +0200 Subject: [PATCH] Skip incremental-mutants job for main There is no diff when running against main, so we skip incremental-mutants. Before this commit, we'd get `Error: Failed to parse diff: Line 1: Error while parsing:` as the diff file was empty. --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90ecd4431..a7c6bcc21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -250,6 +250,7 @@ jobs: incremental-mutants: runs-on: ubuntu-latest + if: github.ref_name != 'main' # `main` has no diff with itself steps: - uses: actions/checkout@v3 with: -- 2.39.5