]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Skip incremental-mutants job for main
authorDuncan Dean <git@dunxen.dev>
Thu, 4 Jul 2024 13:48:01 +0000 (15:48 +0200)
committerDuncan Dean <git@dunxen.dev>
Thu, 4 Jul 2024 13:48:08 +0000 (15:48 +0200)
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

index 90ecd4431c7aac8cfad73f5d18d39bc5822473df..a7c6bcc21398afdcc1fd17157b9b92424ec6d6d2 100644 (file)
@@ -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: