From 90a937e28e4ed75eca1c4022d48b99e9759c165d Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Fri, 2 Oct 2020 17:22:17 -0700 Subject: [PATCH 1/7] add latest tag action --- .github/workflows/latest-release-tag.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/latest-release-tag.yml diff --git a/.github/workflows/latest-release-tag.yml b/.github/workflows/latest-release-tag.yml new file mode 100644 index 0000000000000..6e59edd45567b --- /dev/null +++ b/.github/workflows/latest-release-tag.yml @@ -0,0 +1,21 @@ +name: Latest tag +on: + release: + types: [published] # This makes it run only when a new released is published + +jobs: + run: + name: Add/update tag to new release + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Run latest-tag + uses: EndBug/latest-tag@latest + with: + description: Superset latest release + tag-name: latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From b423f5d0fbbbc74256a98858228157776530a9b0 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Tue, 6 Oct 2020 16:40:38 -0700 Subject: [PATCH 2/7] update documentation with latest tag info --- RELEASING/README.md | 2 ++ docs/src/pages/docs/installation/index.mdx | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RELEASING/README.md b/RELEASING/README.md index ea7ba3f42b5a9..c7e565c111b64 100644 --- a/RELEASING/README.md +++ b/RELEASING/README.md @@ -144,6 +144,8 @@ Commit the change with the version number, then git tag the version with the rel git push upstream ${SUPERSET_VERSION_RC} ``` +At this point, a git action will run that will automatically tag this release as `latest` so that the most recent release can be referenced simply by this tag instead of looking up the version number. + ## Preparing the release candidate The first step of preparing an Apache Release is packaging a release candidate diff --git a/docs/src/pages/docs/installation/index.mdx b/docs/src/pages/docs/installation/index.mdx index 9a030c14fe036..5aa2995d053ef 100644 --- a/docs/src/pages/docs/installation/index.mdx +++ b/docs/src/pages/docs/installation/index.mdx @@ -51,6 +51,12 @@ $ git clone https://github.com/apache/incubator-superset.git Once that command completes successfully, you should see a new `incubator-superset` folder in your current directory. +We recommend that you check out and run the code from the last tagged release: + +```bash +$ git checkout latest +``` + ### 3. Launch Superset Through Docker Compose Navigate to the folder you created in step 1: @@ -68,7 +74,7 @@ $ docker-compose up You should see a wall of logging output from the containers being launched on your machine. Once this output slows, you should have a running instance of Superset on your local machine! -### 4. Login to Superset +### 4. Log in to Superset Your local Superset instance also includes a Postgres server to store your data and is already pre-loaded with some example datasets that ship with Superset. You can access Superset now via your From d1130d8cbbda92a6f5ad208f2e65ad2ec0cb767d Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Wed, 7 Oct 2020 16:43:30 -0700 Subject: [PATCH 3/7] Python in docs doesn't need v3 reference --- docs/src/pages/docs/installation/installing_scratch.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/pages/docs/installation/installing_scratch.mdx b/docs/src/pages/docs/installation/installing_scratch.mdx index 19e95dcfcfb22..ba7bc241126ee 100644 --- a/docs/src/pages/docs/installation/installing_scratch.mdx +++ b/docs/src/pages/docs/installation/installing_scratch.mdx @@ -63,7 +63,7 @@ pip install --upgrade setuptools pip ### Python Virtual Environment -We highly recommend installing Superset inside of a virtual environment. Python 3 ships with +We highly recommend installing Superset inside of a virtual environment. Python ships with `virtualenv` out of the box but you can install it using: ``` From 973d47a30a68d7bc06c3b8e8b47c6026d2887bf1 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Fri, 9 Oct 2020 16:55:29 -0700 Subject: [PATCH 4/7] add check that latest tag is truly a later version --- .github/workflows/latest-release-tag.yml | 76 +++++++++++++++++++++++- RELEASING/README.md | 4 +- 2 files changed, 77 insertions(+), 3 deletions(-) diff --git a/.github/workflows/latest-release-tag.yml b/.github/workflows/latest-release-tag.yml index 6e59edd45567b..862aa0e905a49 100644 --- a/.github/workflows/latest-release-tag.yml +++ b/.github/workflows/latest-release-tag.yml @@ -4,7 +4,7 @@ on: types: [published] # This makes it run only when a new released is published jobs: - run: + latest-release: name: Add/update tag to new release runs-on: ubuntu-latest @@ -12,8 +12,82 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Check for latest tag + id: latest-tag + run: | + LATEST_TAG=$(git show-ref --tags -d | grep latest^{} | sed 's/refs\/tags\/latest^{}//') || echo 'not found' + + # if 'latest' tag doesn't exist, then set this commit to latest + if [[ -z "$LATEST_TAG" ]] + then + # move on to next task + echo "there are no latest tags yet, so I'm going to start by tagging this sha as the latest" + exit 0 + fi + + TAGS=$(git show-ref --tags -d | grep $LATEST_TAG) + + ## get all tags that use the same sha as the latest tag + IFS=$'\n' + LATEST_TAGS=($TAGS) + + ## loop over those tags and only take action on the one that isn't tagged 'latest' + ## that one will have the version number tag + for (( i=0; i<${#LATEST_TAGS[@]}; i++ )) + do + if [[ ${LATEST_TAGS[$i]} != *"latest"* ]] + then + ## extract just the version from this tag + LATEST_RC_TAG=$(echo "${LATEST_TAGS[$i]}" | sed -e 's,.* refs/tags/,,' -e 's/rc//') + echo "The current release with the latest tag is version ${LATEST_RC_TAG}" + + ## remove the sha from the latest tag and split into an array- split at the dot + IFS=$'.' + LATEST_RC_TAG_SPLIT=(${LATEST_RC_TAG}) + + ## remove the 'rc' from the current tag if it exists and split into an array at the dot + THIS_TAG=($(echo ${{ github.event.release.tag_name }} | sed 's/rc//')) || echo 'not found' + + # no tag name exists, then exit and don't move on + if [[ -z "$THIS_TAG" ]] + then + echo "no tag was passed in with this action. Not tagging anything" + echo "::set-env name=skip_tag::true" + exit 0 + fi + + ## at this point the array should have length of three. If it doesn't, don't tag it, as it's clearly not a version tag. + if [[ ${#THIS_TAG[@]} != 3 ]] + then + echo "This tag does not contain a semantic version number. Skipping." + echo "::set-env name=skip_tag::true" + exit 0 + fi + + for (( j=0; j<${#THIS_TAG[@]}; j++ )) + do + ## if this value is greater than the latest release, then tag it, if it's lower, then stop, if it's + ## the same then move on to the next index + if [[ ${THIS_TAG[$j]} -gt ${LATEST_RC_TAG_SPLIT[$j]} ]] + then + echo "This release tag ${{ github.event.release.tag_name }} is the latest. Tagging it" + # move on to next task + exit 0 + elif [[ ${THIS_TAG[$j]} -lt ${LATEST_RC_TAG_SPLIT[$j]} ]] + then + break + fi + done + fi + done + + echo "This release tag ${{ github.event.release.tag_name }} is not the latest. Not tagging." + # if you've gotten this far, then we don't want to run any tags in the next step + echo "::set-env name=skip_tag::true" + - name: Run latest-tag uses: EndBug/latest-tag@latest + if: (! env.skip_tag ) with: description: Superset latest release tag-name: latest diff --git a/RELEASING/README.md b/RELEASING/README.md index c7e565c111b64..7089c0ba9defe 100644 --- a/RELEASING/README.md +++ b/RELEASING/README.md @@ -144,8 +144,6 @@ Commit the change with the version number, then git tag the version with the rel git push upstream ${SUPERSET_VERSION_RC} ``` -At this point, a git action will run that will automatically tag this release as `latest` so that the most recent release can be referenced simply by this tag instead of looking up the version number. - ## Preparing the release candidate The first step of preparing an Apache Release is packaging a release candidate @@ -331,3 +329,5 @@ Finally, so the Github UI reflects the latest release, you should create a relea tag corresponding with the new version. Go to https://github.com/apache/incubator-superset/tags, click the 3-dot icon and select `Create Release`, paste the content of the ANNOUNCE thread in the release notes, and publish the new release. + +At this point, a GitHub action will run that will check whether this release's version number is higher than the current 'latest' release. If that condition is true, this release sha will automatically be tagged as `latest` so that the most recent release can be referenced simply by using the 'latest' tag instead of looking up the version number. The existing version number tag will still exist, and can also be used for reference. From 589c4efbc73d96f6d833a3e1c516364e82ea9ade Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Fri, 13 Nov 2020 16:10:39 -0800 Subject: [PATCH 5/7] remove rc from acceptable tags --- .github/workflows/latest-release-tag.yml | 68 ++++++++++++++---------- scripts/tag_latest.sh | 0 2 files changed, 39 insertions(+), 29 deletions(-) create mode 100644 scripts/tag_latest.sh diff --git a/.github/workflows/latest-release-tag.yml b/.github/workflows/latest-release-tag.yml index 862aa0e905a49..2f1833632cbff 100644 --- a/.github/workflows/latest-release-tag.yml +++ b/.github/workflows/latest-release-tag.yml @@ -1,4 +1,4 @@ -name: Latest tag +name: Tags on: release: types: [published] # This makes it run only when a new released is published @@ -15,7 +15,36 @@ jobs: - name: Check for latest tag id: latest-tag run: | - LATEST_TAG=$(git show-ref --tags -d | grep latest^{} | sed 's/refs\/tags\/latest^{}//') || echo 'not found' + + ## split the current published tag_name into an array at the dot + IFS=$'.' + THIS_TAG_NAME=($(echo ${{ github.event.release.tag_name }})) || echo 'not found' + + # no tag name exists, then exit and don't move on + if [[ -z "$THIS_TAG_NAME" ]] + then + echo "no tag was passed in with this action. Not tagging anything" + echo "::set-env name=skip_tag::true" + exit 0 + fi + + ## at this point the array should have length of three. If it doesn't, don't tag it, as it's clearly not a version tag. + if [[ ${#THIS_TAG_NAME[@]} != 3 ]] + then + echo "This tag ${THIS_TAG_NAME} does not contain a semantic version number. Skipping." + echo "::set-env name=skip_tag::true" + exit 0 + fi + + # don't tag release candidates + if [[ ${THIS_TAG_NAME[2]} == *"rc"* ]] + then + echo "This tag ${THIS_TAG_NAME} is not a valid release version. Not tagging." + echo "::set-env name=skip_tag::true" + exit 0 + fi + + LATEST_TAG=$(git show-ref --tags | grep latest | sed 's/refs\/tags\/latest//') || echo 'not found' # if 'latest' tag doesn't exist, then set this commit to latest if [[ -z "$LATEST_TAG" ]] @@ -27,7 +56,7 @@ jobs: TAGS=$(git show-ref --tags -d | grep $LATEST_TAG) - ## get all tags that use the same sha as the latest tag + ## get all tags that use the same sha as the latest tag. split at new line. IFS=$'\n' LATEST_TAGS=($TAGS) @@ -38,42 +67,23 @@ jobs: if [[ ${LATEST_TAGS[$i]} != *"latest"* ]] then ## extract just the version from this tag - LATEST_RC_TAG=$(echo "${LATEST_TAGS[$i]}" | sed -e 's,.* refs/tags/,,' -e 's/rc//') - echo "The current release with the latest tag is version ${LATEST_RC_TAG}" + LATEST_RELEASE_TAG=$(echo "${LATEST_TAGS[$i]}" | sed -e 's,.* refs/tags/,,') + echo "The current release with the latest tag is version ${LATEST_RELEASE_TAG}" ## remove the sha from the latest tag and split into an array- split at the dot IFS=$'.' - LATEST_RC_TAG_SPLIT=(${LATEST_RC_TAG}) - - ## remove the 'rc' from the current tag if it exists and split into an array at the dot - THIS_TAG=($(echo ${{ github.event.release.tag_name }} | sed 's/rc//')) || echo 'not found' - - # no tag name exists, then exit and don't move on - if [[ -z "$THIS_TAG" ]] - then - echo "no tag was passed in with this action. Not tagging anything" - echo "::set-env name=skip_tag::true" - exit 0 - fi - - ## at this point the array should have length of three. If it doesn't, don't tag it, as it's clearly not a version tag. - if [[ ${#THIS_TAG[@]} != 3 ]] - then - echo "This tag does not contain a semantic version number. Skipping." - echo "::set-env name=skip_tag::true" - exit 0 - fi - - for (( j=0; j<${#THIS_TAG[@]}; j++ )) + LATEST_RELEASE_TAG_SPLIT=(${LATEST_RELEASE_TAG}) + + for (( j=0; j<${#THIS_TAG_NAME[@]}; j++ )) do ## if this value is greater than the latest release, then tag it, if it's lower, then stop, if it's ## the same then move on to the next index - if [[ ${THIS_TAG[$j]} -gt ${LATEST_RC_TAG_SPLIT[$j]} ]] + if [[ ${THIS_TAG_NAME[$j]} -gt ${LATEST_RELEASE_TAG_SPLIT[$j]} ]] then echo "This release tag ${{ github.event.release.tag_name }} is the latest. Tagging it" # move on to next task exit 0 - elif [[ ${THIS_TAG[$j]} -lt ${LATEST_RC_TAG_SPLIT[$j]} ]] + elif [[ ${THIS_TAG_NAME[$j]} -lt ${LATEST_RELEASE_TAG_SPLIT[$j]} ]] then break fi diff --git a/scripts/tag_latest.sh b/scripts/tag_latest.sh new file mode 100644 index 0000000000000..e69de29bb2d1d From db2b28cccb244289b42c41c54aa1569222c6573b Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Mon, 16 Nov 2020 12:32:40 -0800 Subject: [PATCH 6/7] move tag script to seperate file --- .github/workflows/latest-release-tag.yml | 77 +------------- .gitignore | 1 + scripts/tag_latest.sh | 0 scripts/tag_latest_release.sh | 123 +++++++++++++++++++++++ 4 files changed, 126 insertions(+), 75 deletions(-) delete mode 100644 scripts/tag_latest.sh create mode 100755 scripts/tag_latest_release.sh diff --git a/.github/workflows/latest-release-tag.yml b/.github/workflows/latest-release-tag.yml index 2f1833632cbff..b63385d11d782 100644 --- a/.github/workflows/latest-release-tag.yml +++ b/.github/workflows/latest-release-tag.yml @@ -15,86 +15,13 @@ jobs: - name: Check for latest tag id: latest-tag run: | + source ./scripts/tag_latest_release.sh $(echo ${{ github.event.release.tag_name }}) --dry-run - ## split the current published tag_name into an array at the dot - IFS=$'.' - THIS_TAG_NAME=($(echo ${{ github.event.release.tag_name }})) || echo 'not found' - - # no tag name exists, then exit and don't move on - if [[ -z "$THIS_TAG_NAME" ]] - then - echo "no tag was passed in with this action. Not tagging anything" - echo "::set-env name=skip_tag::true" - exit 0 - fi - - ## at this point the array should have length of three. If it doesn't, don't tag it, as it's clearly not a version tag. - if [[ ${#THIS_TAG_NAME[@]} != 3 ]] + if ${SKIP_TAG} then - echo "This tag ${THIS_TAG_NAME} does not contain a semantic version number. Skipping." echo "::set-env name=skip_tag::true" - exit 0 fi - # don't tag release candidates - if [[ ${THIS_TAG_NAME[2]} == *"rc"* ]] - then - echo "This tag ${THIS_TAG_NAME} is not a valid release version. Not tagging." - echo "::set-env name=skip_tag::true" - exit 0 - fi - - LATEST_TAG=$(git show-ref --tags | grep latest | sed 's/refs\/tags\/latest//') || echo 'not found' - - # if 'latest' tag doesn't exist, then set this commit to latest - if [[ -z "$LATEST_TAG" ]] - then - # move on to next task - echo "there are no latest tags yet, so I'm going to start by tagging this sha as the latest" - exit 0 - fi - - TAGS=$(git show-ref --tags -d | grep $LATEST_TAG) - - ## get all tags that use the same sha as the latest tag. split at new line. - IFS=$'\n' - LATEST_TAGS=($TAGS) - - ## loop over those tags and only take action on the one that isn't tagged 'latest' - ## that one will have the version number tag - for (( i=0; i<${#LATEST_TAGS[@]}; i++ )) - do - if [[ ${LATEST_TAGS[$i]} != *"latest"* ]] - then - ## extract just the version from this tag - LATEST_RELEASE_TAG=$(echo "${LATEST_TAGS[$i]}" | sed -e 's,.* refs/tags/,,') - echo "The current release with the latest tag is version ${LATEST_RELEASE_TAG}" - - ## remove the sha from the latest tag and split into an array- split at the dot - IFS=$'.' - LATEST_RELEASE_TAG_SPLIT=(${LATEST_RELEASE_TAG}) - - for (( j=0; j<${#THIS_TAG_NAME[@]}; j++ )) - do - ## if this value is greater than the latest release, then tag it, if it's lower, then stop, if it's - ## the same then move on to the next index - if [[ ${THIS_TAG_NAME[$j]} -gt ${LATEST_RELEASE_TAG_SPLIT[$j]} ]] - then - echo "This release tag ${{ github.event.release.tag_name }} is the latest. Tagging it" - # move on to next task - exit 0 - elif [[ ${THIS_TAG_NAME[$j]} -lt ${LATEST_RELEASE_TAG_SPLIT[$j]} ]] - then - break - fi - done - fi - done - - echo "This release tag ${{ github.event.release.tag_name }} is not the latest. Not tagging." - # if you've gotten this far, then we don't want to run any tags in the next step - echo "::set-env name=skip_tag::true" - - name: Run latest-tag uses: EndBug/latest-tag@latest if: (! env.skip_tag ) diff --git a/.gitignore b/.gitignore index eb75a231fa8c6..175e7e78bad68 100644 --- a/.gitignore +++ b/.gitignore @@ -81,6 +81,7 @@ ghostdriver.log testCSV.csv .terser-plugin-cache/ apache-superset-*.tar.gz* +release.json # Translation binaries messages.mo diff --git a/scripts/tag_latest.sh b/scripts/tag_latest.sh deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/scripts/tag_latest_release.sh b/scripts/tag_latest_release.sh new file mode 100755 index 0000000000000..8a1d28708c31f --- /dev/null +++ b/scripts/tag_latest_release.sh @@ -0,0 +1,123 @@ +#! /bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +run_git_tag () { + if [ "$DRY_RUN" = "false" ] && [ "$SKIP_TAG" = "false" ] + then + git tag -a -f latest "${GITHUB_TAG_NAME}" -m "latest tag" + echo "${GITHUB_TAG_NAME} has been tagged 'latest'" + fi + exit 0 +} + +SKIP_TAG=false +DRY_RUN=false + +# get params passed in with script when it was run +# --dry-run is optional and returns the value of SKIP_TAG, but does not run the git tag statement +# A tag name is required as a param. A SHA won't work. You must first tag a sha with a release number +# and then run this script +while [[ $# -gt 0 ]] +do +key="$1" + +case $key in + --dry-run) + DRY_RUN=true + shift # past value + ;; + *) # this should be the tag name + GITHUB_TAG_NAME=$key + shift # past value + ;; +esac +done + +if [ -z "${GITHUB_TAG_NAME}" ]; then + echo "Missing tag parameter, usage: ./scripts/tag_latest_release.sh " + exit 1 +fi + +# check that this tag only contains a proper semantic version +if ! [[ ${GITHUB_TAG_NAME} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] +then + echo "This tag ${GITHUB_TAG_NAME} is not a valid release version. Not tagging." + SKIP_TAG=true + exit 0 +fi + +## split the current GITHUB_TAG_NAME into an array at the dot +IFS=$'.' +THIS_TAG_NAME=(${GITHUB_TAG_NAME}) || echo 'not found' + +# look up the 'latest' tag on git +LATEST_TAG_LIST=$(git show-ref latest && git show --pretty=tformat:%d -s latest | grep tag:) || echo 'not found' + +# if 'latest' tag doesn't exist, then set this commit to latest +if [[ -z "$LATEST_TAG_LIST" ]] +then + # move on to next task + echo "there are no latest tags yet, so I'm going to start by tagging this sha as the latest" + run_git_tag +fi + +## get all tags that use the same sha as the latest tag. split at comma. +IFS=$',' +LATEST_TAGS=($LATEST_TAG_LIST) + +## loop over those tags and only take action on the one that isn't tagged 'latest' +## that one will have the version number tag +for (( i=0; i<${#LATEST_TAGS[@]}; i++ )) +do + if [[ ${LATEST_TAGS[$i]} != *"latest"* ]] + then + ## extract just the version from this tag + LATEST_RELEASE_TAG=$(echo "${LATEST_TAGS[$i]}" | sed -E -e 's/tag:|\(|\)|[[:space:]]*//g') + + # check that this only contains a proper semantic version + if ! [[ ${LATEST_RELEASE_TAG} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] + then + echo "This tag ${LATEST_RELEASE_TAG} is not a valid release version. Looking for another." + continue + fi + echo "The current release with the latest tag is version ${LATEST_RELEASE_TAG}" + + ## remove the sha from the latest tag and split into an array- split at the dot + IFS=$'.' + LATEST_RELEASE_TAG_SPLIT=(${LATEST_RELEASE_TAG}) + + for (( j=0; j<${#THIS_TAG_NAME[@]}; j++ )) + do + ## if this value is greater than the latest release, then tag it, if it's lower, then stop, if it's + ## the same then move on to the next index + if [[ ${THIS_TAG_NAME[$j]} -gt ${LATEST_RELEASE_TAG_SPLIT[$j]} ]] + then + echo "This release tag ${GITHUB_TAG_NAME} is the latest. Tagging it" + run_git_tag + + elif [[ ${THIS_TAG_NAME[$j]} -lt ${LATEST_RELEASE_TAG_SPLIT[$j]} ]] + then + continue + fi + done + fi +done + +echo "This release tag ${GITHUB_TAG_NAME} is not the latest. Not tagging." +# if you've gotten this far, then we don't want to run any tags in the next step +SKIP_TAG=true From ba3189821437f22d3baf8ee3f7f8109fc536d35d Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Mon, 14 Dec 2020 10:39:02 -0800 Subject: [PATCH 7/7] add a check that the tag exists --- scripts/tag_latest_release.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/tag_latest_release.sh b/scripts/tag_latest_release.sh index 8a1d28708c31f..0e3113672880e 100755 --- a/scripts/tag_latest_release.sh +++ b/scripts/tag_latest_release.sh @@ -53,6 +53,11 @@ if [ -z "${GITHUB_TAG_NAME}" ]; then exit 1 fi +if [ -z "$(git show-ref ${GITHUB_TAG_NAME})" ]; then + echo "The tag ${GITHUB_TAG_NAME} does not exist. Please use a different tag." + exit 1 +fi + # check that this tag only contains a proper semantic version if ! [[ ${GITHUB_TAG_NAME} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] then @@ -92,7 +97,7 @@ do # check that this only contains a proper semantic version if ! [[ ${LATEST_RELEASE_TAG} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] then - echo "This tag ${LATEST_RELEASE_TAG} is not a valid release version. Looking for another." + echo "'Latest' has been associated with tag ${LATEST_RELEASE_TAG} which is not a valid release version. Looking for another." continue fi echo "The current release with the latest tag is version ${LATEST_RELEASE_TAG}"