From 1fb1be721c748268857a858de7b23b131b58ff6a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 4 Aug 2024 11:28:13 -0400 Subject: [PATCH] github: don't run default-build if there are no changes --- .github/workflows/nix-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index 08e0dd7d..e05938dc 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -8,6 +8,7 @@ on: workflow_dispatch: jobs: default-build: + if: contains(github.event.head_commit.message, 'flake/') || contains(github.event.head_commit.message, 'flake.nix') || contains(github.event.head_commit.message, 'flake.lock') runs-on: ubuntu-latest steps: - uses: actions/checkout@main