タグ付けされたCommitの素性を確認するstepを追加
This commit is contained in:
parent
84bef60257
commit
4d7c3969b4
@ -15,8 +15,17 @@ jobs:
|
||||
- job: Build
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/stage-'), eq(variables['Build.SourceBranchName'], 'develop'))
|
||||
steps:
|
||||
- checkout: self
|
||||
- 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ブランチに存在するか確認'
|
||||
- script: echo Checked out $(Build.SourceVersion) tagged with $(Build.SourceBranch)
|
||||
displayName: "Run a one-line script"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user