From 004fc774dc0db0e9a666b054d1ced554e14d9162 Mon Sep 17 00:00:00 2001 From: "x.yumoto.k" Date: Tue, 25 Jul 2023 15:16:03 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF=E3=82=B9?= =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=83=97=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- azure-pipelines.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cab0fbb..83402af 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,6 +12,15 @@ jobs: - checkout: self clean: true fetchDepth: 1 + - script: | + git fetch origin main:main + if git merge-base --is-ancestor $(Build.SourceVersion) main; then + echo "This commit is in the main branch." + else + echo "This commit is not in the main branch." + exit 1 + fi + displayName: 'タグが付けられたCommitがdevelopブランチに存在するか確認' - task: Npm@1 displayName: npm ci inputs: