From 3884485a5496959a9a7494443311e19bedd5c6ae Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Sat, 13 Jul 2024 03:49:34 +0200 Subject: [PATCH] ci: fix semver for date (no leading 0) --- .github/workflows/ci_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_package.yml b/.github/workflows/ci_package.yml index 94a0c8b..a68a561 100644 --- a/.github/workflows/ci_package.yml +++ b/.github/workflows/ci_package.yml @@ -166,12 +166,12 @@ jobs: with: tag-prefix: ${{ inputs.package }}- scope: ${{ inputs.package }} - - name: + - name: Compute tag and semantic version id: tag run: | if [ "${{ steps.package.outputs.versioning }}" == "date" ]; then TAG="${{ inputs.package }}-$(date '+%Y.%m.%d')" - SEMVER="$(date '+%Y.%m.%d')" + SEMVER="$(date '+%Y.%-m.%-d')" else TAG="${{ steps.tag-next.outputs.tag }}" SEMVER="${{ steps.tag-next.outputs.semver }}"