diff --git a/.github/workflows/gradle-push.yml b/.github/workflows/gradle-push.yml index 34c53bf..74e0c5f 100644 --- a/.github/workflows/gradle-push.yml +++ b/.github/workflows/gradle-push.yml @@ -17,6 +17,23 @@ jobs: runs-on: ubuntu-latest steps: +# - name: Get version from commit message +# id: commitversion +# run: | +# if [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then +# commit_message="${GITHUB_EVENT_HEAD_COMMIT_MESSAGE}" +# if [[ $commit_message == release:* && $commit_message =~ ([0-9]+\.[0-9]+\.[0-9]+(-[\w\.]+)?) ]]; then +# commit_version="${BASH_REMATCH[1]}" +# informational_version="${BASH_REMATCH[0]}" +# echo "commit_version=$commit_version" >> $GITHUB_ENV +# echo "informational_version=$informational_version" >> $GITHUB_ENV +# echo "is_release=True" >> $GITHUB_ENV +# else +# echo "commit_version=1.0.0" >> $GITHUB_ENV +# echo "informational_version=1.0.0" >> $GITHUB_ENV +# echo "is_release=False" >> $GITHUB_ENV +# fi +# fi - uses: actions/checkout@v3 with: # Disabling shallow clone is recommended for improving relevancy of reporting