Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sh0rtcircuit/f5517bc4a3b734d00b0a385a92afe926 to your computer and use it in GitHub Desktop.
Save sh0rtcircuit/f5517bc4a3b734d00b0a385a92afe926 to your computer and use it in GitHub Desktop.
Azure DevOps Commitizen Full Example
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