From 87372effd239577d4e1dad87c8e0150965ae324d Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Wed, 29 Sep 2021 11:37:50 -0700 Subject: [PATCH] Prevent unnecessary Docker builds --- 5etools-docker/.github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/5etools-docker/.github/workflows/ci.yml b/5etools-docker/.github/workflows/ci.yml index 6b19675a..72a8be2a 100644 --- a/5etools-docker/.github/workflows/ci.yml +++ b/5etools-docker/.github/workflows/ci.yml @@ -7,8 +7,14 @@ on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: [ main ] + paths-ignore: # don't run this workflow if no changes have been made to the docker image + - '.github/**' + - 'docker-compose.yml' pull_request: branches: [ main ] + paths-ignore: # don't run this workflow if no changes have been made to the docker image + - '.github/**' + - 'docker-compose.yml' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: