chore: update versioning scheme for versions (post commit releases)

fixes https://github.com/containers/podman-desktop/issues/6758
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
Florent Benoit 2024-06-13 17:17:40 +02:00 committed by Florent BENOIT
parent ac9d573d61
commit f94f98f567

View file

@ -44,7 +44,11 @@ jobs:
run: |
CURRENT_DAY=$(date +'%Y%m%d')
SHORT_SHA1=$(git rev-parse --short HEAD)
TAG_PATTERN=0.0.$(date +'%Y%m%d%H%M')-${SHORT_SHA1}
# grab the version from the package.json
PODMAN_DEKSTOP_VERSION=$(jq -r '.version' package.json)
# remove the -next from the version
STRIPPED_VERSION=${PODMAN_DEKSTOP_VERSION%-next}
TAG_PATTERN=${STRIPPED_VERSION}-$(date +'%Y%m%d%H%M')-${SHORT_SHA1}
echo "githubTag=v$TAG_PATTERN" >> ${GITHUB_OUTPUT}
echo "desktopVersion=$TAG_PATTERN" >> ${GITHUB_OUTPUT}
- name: tag