Refactor GitHub Actions workflows (#1023)

* Unify release workflows and add chart/mobile wrappers

* Update chart CI to kube 1.25

* Fetch tagged commit before pushing release branch

* Old `azure/setup-helm`

* Base chart dispatch version on existing chart tags

* `grep` failure with `pipefail` bypasses the user-friendly error message

* `gh-pages` push lacks retry logic

* Auto-incremented chart tag collision

* `grep -Ev` pipeline will crash

* Missed one
This commit is contained in:
Juan José Mata
2026-02-19 21:36:47 +01:00
committed by GitHub
parent 13c2335a6a
commit 69fa440558
8 changed files with 401 additions and 140 deletions

View File

@@ -33,9 +33,14 @@ jobs:
set -euo pipefail
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
BRANCH_NAME="${GITHUB_REF_NAME}"
SAFE_BRANCH_NAME="${BRANCH_NAME//\//-}"
BASE_TAG="${SAFE_BRANCH_NAME}-$(date -u +'%Y%m%d%H%M')"
BASE_STABLE_TAG="$(git tag --list 'v*' --sort=-v:refname | { grep -Ev 'alpha|beta|rc' || true; } | head -n 1)"
if [ -z "$BASE_STABLE_TAG" ]; then
echo "::error::No stable v* tag found to base mobile patch release on"
exit 1
fi
STAMP="$(date -u +'%Y%m%d%H%M')"
BASE_TAG="mobile-${BASE_STABLE_TAG}-p${STAMP}"
TAG_NAME="$BASE_TAG"
TAG_SUFFIX=1