mainブランチ縛りをコメントアウト

This commit is contained in:
x.yumoto.k 2023-09-25 12:06:44 +09:00
parent b543c6eb0e
commit bafc4a8bb9

View File

@ -19,15 +19,15 @@ jobs:
clean: true
fetchDepth: 1
persistCredentials: true
- 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がmainブランチに存在するか確認'
# - 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がmainブランチに存在するか確認'
- job: backend_build
dependsOn: initialize
condition: succeeded('initialize')