Created
May 10, 2022 15:21
-
-
Save sh0rtcircuit/f5517bc4a3b734d00b0a385a92afe926 to your computer and use it in GitHub Desktop.
Azure DevOps Commitizen Full Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- master | |
- feature/* | |
variables: | |
isMaster: $[eq(variables['build.sourceBranch'], 'refs/heads/master')] | |
CI_USERNAME: "CI Pipeline" | |
CI_EMAIL: [email protected] | |
jobs: | |
- job: 'Unit_Testing' | |
pool: | |
vmImage: 'ubuntu-latest' | |
strategy: | |
matrix: | |
Python39: | |
python.version: '3.9' | |
steps: | |
- task: UsePythonVersion@0 | |
inputs: | |
versionSpec: '$(python.version)' | |
- checkout: self | |
persistCredentials: true | |
clean: true | |
- script: | | |
git config --global user.email "$(CI_EMAIL)" && git config --global user.name "$(CI_USERNAME)" | |
cz bump --annotated-tag --check-consistency | |
git push --tags origin HEAD:master | |
condition: eq(variables.isMaster, true) | |
displayName: 'Bump package version number' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment