diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2973a02e..433309eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -191,6 +191,7 @@ jobs: git config --global user.name "Phrase" git add . git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" + PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true git push --tags origin master else @@ -221,6 +222,7 @@ jobs: git config --global user.name "Phrase" git add . git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" + PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true git push --tags origin master else diff --git a/openapi-generator/templates/java/README.mustache b/openapi-generator/templates/java/README.mustache index cd09bd8a..05ada4d4 100644 --- a/openapi-generator/templates/java/README.mustache +++ b/openapi-generator/templates/java/README.mustache @@ -3,10 +3,7 @@ {{appName}} - API version: {{appVersion}} -{{^hideGenerationTimestamp}} - -- Build date: {{generatedDate}} -{{/hideGenerationTimestamp}} +- Package version: {{artifactVersion}} Phrase Strings is a translation management platform for software projects. You can collaborate on language file translation with your team or order translations through our platform. The API allows you to import locale files, download locale files, tag keys or interact in other ways with the localization data stored in Phrase Strings for your account.