fix in ci again, python3
This commit is contained in:
@ -24,7 +24,7 @@ versionize:
|
||||
when: manual
|
||||
allow_failure: false
|
||||
before_script:
|
||||
- PKG_VERSION=$(echo -e "import yaml\nwith open('openapi.yaml') as f:d=yaml.load(f)\nprint d['info']['version']" | python)
|
||||
- PKG_VERSION=$(echo -e "import yaml\nwith open('openapi.yaml') as f:d=yaml.load(f)\nprint(d['info']['version'])" | python)
|
||||
- REFCNT=$(git rev-list --count ${CI_COMMIT_SHA})
|
||||
- VERSION=${PKG_VERSION}.${REFCNT}.${CI_COMMIT_REF_NAME}
|
||||
- API_VERSION="1.0.0"
|
||||
|
Reference in New Issue
Block a user