mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Update azure-pipelines-release.yml
This commit is contained in:
parent
d1b9ebc7b2
commit
0fa1e3ac92
@ -11,29 +11,23 @@ variables:
|
|||||||
- group: docker
|
- group: docker
|
||||||
- group: github
|
- group: github
|
||||||
- group: twine
|
- group: twine
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: azure
|
||||||
|
type: github
|
||||||
|
name: 'home-assistant/ci-azure'
|
||||||
|
endpoint: 'home-assistant'
|
||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
|
||||||
- stage: 'Validate'
|
- stage: 'Validate'
|
||||||
jobs:
|
jobs:
|
||||||
- job: 'VersionValidate'
|
- template: templates/azp-job-version.yaml@azure
|
||||||
|
- job: 'Permission'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
|
||||||
displayName: 'Use Python 3.7'
|
|
||||||
inputs:
|
|
||||||
versionSpec: '3.7'
|
|
||||||
- script: |
|
|
||||||
setup_version="$(python setup.py -V)"
|
|
||||||
branch_version="$(Build.SourceBranchName)"
|
|
||||||
|
|
||||||
if [ "${setup_version}" != "${branch_version}" ]; then
|
|
||||||
echo "Version of tag ${branch_version} don't match with ${setup_version}!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
displayName: 'Check version of branch/tag'
|
|
||||||
- script: |
|
- script: |
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
jq curl
|
jq curl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user