From 042b10abb872b01d1cdc6dcc94e6a04038b59fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sun, 14 Jan 2024 19:30:10 +0100 Subject: [PATCH] fix(ci): Don't run nix check when no nix files have changed --- .github/workflows/check.yml | 3 +++ .github/workflows/deploy.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5f65a23..c561659 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,6 +1,9 @@ name: Check flake on: push: + path: + - ./**.nix + - ./flake.lock pull_request: schedule: - cron: 5 4 * * 5 # At 04:05 on Friday. diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f16a93b..6504f6b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,8 +12,8 @@ on: # Module options - ./options.nix # Nix files - - flake.lock - - flake.nix + - ./flake.lock + - ./flake.nix jobs: build-website: