From 2bcecd80b37e0922b544c1b9b62249a49985e2b2 Mon Sep 17 00:00:00 2001 From: Xander Bil Date: Thu, 22 Aug 2024 17:36:25 +0200 Subject: [PATCH] Only run workflows on certain changes --- .github/workflows/cargo.yml | 6 ++++++ .github/workflows/docker.yml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 56e8cbd..1caef46 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -5,7 +5,13 @@ on: push: branches: - main + paths: + - .github/workflows/cargo.yml + - '**/*.rs' pull_request: + paths: + - .github/workflows/cargo.yml + - '**/*.rs' workflow_dispatch: env: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8b3ff18..3be726e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,6 +4,10 @@ on: push: branches: - main + paths: + - '**/*.rs' + - Dockerfile + - Cargo.lock concurrency: group: docker-main