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: