Skip to content

Commit

Permalink
feat: ET-1571: Adding git checkout for semantic-release
Browse files Browse the repository at this point in the history
feat: ET-1571: Adding git checkout
  • Loading branch information
gethin-dvla committed Oct 24, 2024
1 parent 941670b commit bf04dd7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ stages:
displayName: "Checking out git repository"
- script: |
echo "Current branch is $(git branch --show-current)"
git fetch --all
git fetch --all --unshallow
git fetch --tags
echo "Switching branch to $(basename $(Build.SourceBranch))"
git switch $(basename $(Build.SourceBranch))
Expand All @@ -151,12 +151,8 @@ stages:
- script: |
echo "Last released: $(poetry run semantic-release version --print-last-released)"
echo "Next release : $(poetry run semantic-release version --print-tag)"
echo "Git command 1"
echo "Mergebase is $(git merge-base v0.1.1 main)"
echo "Git command 2"
echo "rev-list is $(git rev-list v0.1.1... --)"
echo "Git command 3"
echo "Mergebase is $(git merge-base v0.1.1 main | git cat-file --batch-check)"
poetry run semantic-release --noop version --no-vcs-release
displayName: "Git test commands"
- script: |
Expand Down

0 comments on commit bf04dd7

Please sign in to comment.