diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 128d4f4b..10dc72bb 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -4,6 +4,11 @@ on: push: branches: - main + paths: + - 'src/**' + - 'infra/**' + - 'azure.yaml' + - '.github/workflows/create-release.yml' permissions: contents: write diff --git a/src/ContentProcessor/azure_cicd.yml b/src/ContentProcessor/azure_cicd.yml index 9abff61b..310c4df1 100644 --- a/src/ContentProcessor/azure_cicd.yml +++ b/src/ContentProcessor/azure_cicd.yml @@ -2,6 +2,9 @@ trigger: branches: include: - main + paths: + include: + - src/ContentProcessor/** # When multiple commits land quickly on main, only run the latest. batch: true diff --git a/src/ContentProcessorAPI/azure_cicd.yaml b/src/ContentProcessorAPI/azure_cicd.yaml index c12ec6c3..14ead012 100644 --- a/src/ContentProcessorAPI/azure_cicd.yaml +++ b/src/ContentProcessorAPI/azure_cicd.yaml @@ -2,6 +2,9 @@ trigger: branches: include: - main + paths: + include: + - src/ContentProcessorAPI/** # When multiple commits land quickly on main, only run the latest. batch: true diff --git a/src/ContentProcessorWeb/azure_cicd.yaml b/src/ContentProcessorWeb/azure_cicd.yaml index 791ebf14..3b4ed6a2 100644 --- a/src/ContentProcessorWeb/azure_cicd.yaml +++ b/src/ContentProcessorWeb/azure_cicd.yaml @@ -3,6 +3,9 @@ trigger: include: - main - frontend_dev + paths: + include: + - src/ContentProcessorWeb/** # When multiple commits land quickly on main, only run the latest. batch: true diff --git a/src/ContentProcessorWorkflow/azure_cicd.yaml b/src/ContentProcessorWorkflow/azure_cicd.yaml index 127b7abc..7a787812 100644 --- a/src/ContentProcessorWorkflow/azure_cicd.yaml +++ b/src/ContentProcessorWorkflow/azure_cicd.yaml @@ -2,6 +2,9 @@ trigger: branches: include: - main + paths: + include: + - src/ContentProcessorWorkflow/** # When multiple commits land quickly on main, only run the latest. batch: true