Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
湯本 開 2023-07-24 09:00:22 +00:00
parent 4d7c3969b4
commit 18af4e297d

View File

@ -16,20 +16,20 @@ jobs:
pool: pool:
vmImage: ubuntu-latest vmImage: ubuntu-latest
steps: steps:
- checkout: self - checkout: self
- script: | - script: |
git fetch origin main:main git fetch origin main:main
if git merge-base --is-ancestor $(Build.SourceVersion) main; then if git merge-base --is-ancestor $(Build.SourceVersion) main; then
echo "This commit is in the main branch." echo "This commit is in the main branch."
else else
echo "This commit is not in the main branch." echo "This commit is not in the main branch."
exit 1 exit 1
fi fi
displayName: 'タグが付けられたCommitがdevelopブランチに存在するか確認' displayName: 'タグが付けられたCommitがdevelopブランチに存在するか確認'
- script: echo Checked out $(Build.SourceVersion) tagged with $(Build.SourceBranch) - script: echo Checked out $(Build.SourceVersion) tagged with $(Build.SourceBranch)
displayName: "Run a one-line script" displayName: "Run a one-line script"
- script: | - script: |
echo Add other tasks to build, test, and deploy your project. echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml echo See https://aka.ms/yaml
displayName: "Run Build" displayName: "Run Build"