diff --git a/.github/workflows/release-build-and-push-to-GH-releases.yml b/.github/workflows/release-build-and-push-to-GH-releases.yml index 154151dde..793cc4655 100644 --- a/.github/workflows/release-build-and-push-to-GH-releases.yml +++ b/.github/workflows/release-build-and-push-to-GH-releases.yml @@ -29,17 +29,17 @@ jobs: - name: Generate tag utilities id: TAG_UTIL run: | - echo "::set-output name=gh_tag::$(date +'%Y%m%d%H%M%S')" if [[ ${GITHUB_REF#refs/heads/} =~ 7.* ]]; then echo "::set-output name=chectl_version::$(cat VERSION)" echo "::set-output name=gh_release_name::$(cat VERSION)" + echo "::set-output name=gh_tag::$(cat VERSION)" fi if [[ ${GITHUB_REF#refs/heads/} =~ master ]]; then CURRENT_DAY=$(date +'%Y%m%d') SHORT_SHA1=$(git rev-parse --short HEAD) - export CHECTL_VERSION=0.0.$CURRENT_DAY-next + echo "::set-output name=gh_tag::$(date +'%Y%m%d%H%M%S')" echo "::set-output name=chectl_version::0.0.$CURRENT_DAY-next" echo "::set-output name=gh_release_name::0.0.$CURRENT_DAY-next.$SHORT_SHA1" fi