From 3ade3a04cb1126c3ad5e0310e11d2437536cb802 Mon Sep 17 00:00:00 2001 From: Lauri Gates Date: Fri, 8 Dec 2023 09:38:24 +0200 Subject: [PATCH] Configure release pipeline trigger --- azure-build-main.yml | 12 ++++++------ azure-build-release.yml | 31 ++++++++++++++----------------- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/azure-build-main.yml b/azure-build-main.yml index d3e1981..10f1bc8 100644 --- a/azure-build-main.yml +++ b/azure-build-main.yml @@ -1,4 +1,4 @@ -# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# Continuous integration (CI) triggers cause a pipeline to run whenever you push # an update to the specified branches or you push specified tags. trigger: batch: true @@ -9,15 +9,15 @@ trigger: exclude: - README.md -# Pull request (PR) triggers cause a pipeline to run whenever a pull request is -# opened with one of the specified target branches, or when updates are made to +# Pull request (PR) triggers cause a pipeline to run whenever a pull request is +# opened with one of the specified target branches, or when updates are made to # such a pull request. # -# GitHub creates a new ref when a pull request is created. The ref points to a -# merge commit, which is the merged code between the source and target branches +# GitHub creates a new ref when a pull request is created. The ref points to a +# merge commit, which is the merged code between the source and target branches # of the pull request. # -# Opt out of pull request validation +# Opt out of pull request validation pr: none # By default, use self-hosted agents diff --git a/azure-build-release.yml b/azure-build-release.yml index bcd0d1f..feea186 100644 --- a/azure-build-release.yml +++ b/azure-build-release.yml @@ -1,26 +1,23 @@ -# Continuous integration (CI) triggers cause a pipeline to run whenever you push +# Continuous integration (CI) triggers cause a pipeline to run whenever you push # an update to the specified branches or you push specified tags. -trigger: none - # batch: true - # branches: - # include: - # - main - # # other examples: - # - release/* - # - refs/tags/* - # paths: - # exclude: - # - README.md +trigger: + batch: true + branches: + include: + - refs/tags/v*.*.* + paths: + exclude: + - README.md -# Pull request (PR) triggers cause a pipeline to run whenever a pull request is -# opened with one of the specified target branches, or when updates are made to +# Pull request (PR) triggers cause a pipeline to run whenever a pull request is +# opened with one of the specified target branches, or when updates are made to # such a pull request. # -# GitHub creates a new ref when a pull request is created. The ref points to a -# merge commit, which is the merged code between the source and target branches +# GitHub creates a new ref when a pull request is created. The ref points to a +# merge commit, which is the merged code between the source and target branches # of the pull request. # -# Opt out of pull request validation +# Opt out of pull request validation pr: none # By default, use self-hosted agents