From 752c4d967ed82edd6ef7e68db797dd2ac81073fc Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Wed, 29 Sep 2021 11:44:55 -0700 Subject: [PATCH] Trigger CD automatically with updates to Docker image --- 5etools-docker/.github/workflows/cd.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/5etools-docker/.github/workflows/cd.yml b/5etools-docker/.github/workflows/cd.yml index 094b3049..825b6bf0 100644 --- a/5etools-docker/.github/workflows/cd.yml +++ b/5etools-docker/.github/workflows/cd.yml @@ -5,10 +5,16 @@ name: CD # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch - #push: - # branches: [ main ] - #pull_request: - # branches: [ main ] + 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: