From 3b7179ce8794da9d3951a68eb134f066a7104c29 Mon Sep 17 00:00:00 2001 From: Olivier Date: Wed, 23 Sep 2026 14:57:42 +0200 Subject: [PATCH] feat(ci): add automated temporal CalVer release tagging on main --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e6ced1b..5d81d609 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -192,11 +192,27 @@ jobs: git pull --rebase origin "$BRANCH" --autostash - name: Commit version bumps & hashes + id: auto_commit uses: stefanzweifel/git-auto-commit-action@v5 # NOSONAR with: commit_message: "chore: release versions & update hashes [skip ci]" commit_options: '--no-verify' + - name: Create and push temporal release tag on main + if: github.ref == 'refs/heads/main' && steps.auto_commit.outputs.changes_detected == 'true' + run: | + git fetch --tags origin + DATE_TAG="v$(date -u +'%Y.%m.%d')" + TAG="$DATE_TAG" + COUNTER=1 + while git rev-parse "$TAG" >/dev/null 2>&1; do + TAG="${DATE_TAG}.${COUNTER}" + COUNTER=$((COUNTER + 1)) + done + echo "Creating temporal release tag: $TAG" + git tag -a "$TAG" -m "Release $TAG [skip ci]" + git push origin "$TAG" + publish-preview: name: Publish On-Demand QA Preview Packages needs: sonarcloud