From 54231dce6536aba7c5c0c6d77282ad34d31cc810 Mon Sep 17 00:00:00 2001 From: kagemnikarimu <82295340+KagemniKarimu@users.noreply.github.com> Date: Thu, 9 Jan 2025 02:02:57 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Add=20Path=20Sensitivity=20to=20?= =?UTF-8?q?Github=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure that Docker build and push job is only initiated when relevant livebook or Docker-related files are changed. --- .github/workflows/docker-image.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2212a68..e24c36e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -4,8 +4,16 @@ on: push: branches: ["main"] tags: ["v*.*.*"] + paths: + - "Dockerfile" + - ".github/workflows/docker-image.yml" + - "livebook/**" pull_request: branches: ["main"] + paths: + - "Dockerfile" + - ".github/workflows/docker-image.yml" + - "livebook/**" jobs: build-and-push: