Skip to content

Commit

Permalink
Release stable
Browse files Browse the repository at this point in the history
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
  • Loading branch information
flacatus committed Jan 5, 2021
1 parent 21f6a66 commit bc91b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-build-and-push-to-GH-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc91b63

Please sign in to comment.