Loading .gitlab-ci.yml +1 −6 Original line number Diff line number Diff line Loading @@ -7,12 +7,7 @@ release_job: rules: - if: $CI_COMMIT_TAG # Run this job when a tag is created before_script: - | EXPATH_VERSION=$(sed -rn 's/.*version="([^"]*)".*/\1/p' src/resources/expath-pkg.xml) if [ ${CI_COMMIT_TAG} != ${EXPATH_VERSION} ] then echo 'fail : Bad expath-pkg.xml version : ${EXPATH_VERSION} instead of ${CI_COMMIT_TAG}' && exit 1 else echo 'Version ok' fi - sed -i "s/version=\"[^\"]*\"/version=\"$CI_COMMIT_TAG\"/g" src/resources/expath-pkg.xml script: - echo "running release_job" release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties Loading src/resources/expath-pkg.xml +1 −1 Original line number Diff line number Diff line <package xmlns="http://expath.org/ns/pkg" name="max" abbrev="max" version="0.0.3" version="dev" spec="1.0"> <title>MaX app</title> Loading Loading
.gitlab-ci.yml +1 −6 Original line number Diff line number Diff line Loading @@ -7,12 +7,7 @@ release_job: rules: - if: $CI_COMMIT_TAG # Run this job when a tag is created before_script: - | EXPATH_VERSION=$(sed -rn 's/.*version="([^"]*)".*/\1/p' src/resources/expath-pkg.xml) if [ ${CI_COMMIT_TAG} != ${EXPATH_VERSION} ] then echo 'fail : Bad expath-pkg.xml version : ${EXPATH_VERSION} instead of ${CI_COMMIT_TAG}' && exit 1 else echo 'Version ok' fi - sed -i "s/version=\"[^\"]*\"/version=\"$CI_COMMIT_TAG\"/g" src/resources/expath-pkg.xml script: - echo "running release_job" release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties Loading
src/resources/expath-pkg.xml +1 −1 Original line number Diff line number Diff line <package xmlns="http://expath.org/ns/pkg" name="max" abbrev="max" version="0.0.3" version="dev" spec="1.0"> <title>MaX app</title> Loading